com.silverpeas.wysiwyg.dynamicvalue.pool
Class ConnectionPoolWithJNDI
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionPoolWithJNDI
public ConnectionPoolWithJNDI()
- default constructor
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.