com.silverpeas.wysiwyg.dynamicvalue.pool
Class ConnectionPoolWithJNDI

java.lang.Object
  extended by com.silverpeas.wysiwyg.dynamicvalue.pool.ConnectionPoolWithJNDI
All Implemented Interfaces:
ConnectionPool

public class ConnectionPoolWithJNDI
extends Object
implements ConnectionPool

use to create connection with JNDI Before using this class you must declare a jndi resource in your application server. The resource name must be declare in the connectionSetting.xml file


Constructor Summary
ConnectionPoolWithJNDI()
          default constructor
 
Method Summary
 Connection getConnection()
          gets a JDBC connection via JNDI
 ConnectionPoolInformation getPoolInformation()
           
 void setPoolInformation(ConnectionPoolInformation poolInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionPoolWithJNDI

public ConnectionPoolWithJNDI()
default constructor

Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
gets a JDBC connection via JNDI

Specified by:
getConnection in interface ConnectionPool
Returns:
a JDBC Connection
Throws:
SQLException

getPoolInformation

public ConnectionPoolInformation getPoolInformation()
Specified by:
getPoolInformation in interface ConnectionPool
Returns:
the poolInfo

setPoolInformation

public void setPoolInformation(ConnectionPoolInformation poolInfo)
Specified by:
setPoolInformation in interface ConnectionPool
Parameters:
poolInfo - the poolInfo to set


Copyright © 2016 Silverpeas. All Rights Reserved.