Public Member Functions | |
Pool | getPool () |
ConnectionManager () throws Exception | |
ConnectionManager (boolean isClient) throws Exception | |
boolean | isClientCase () |
String | getDSName () |
void | setDSName (String s) |
void | poolConfigure (String connchecklevel, String connmaxage, String maxopentime, String connteststmt, String minconpool, String maxconpool, String maxwaittime, String maxwaiters, String samplingperiod) |
Connection | getConnection () throws SQLException |
Connection | getConnection (String username, String password) throws SQLException |
java.io.PrintWriter | getLogWriter () throws SQLException |
void | setLogWriter (java.io.PrintWriter out) throws SQLException |
void | setLoginTimeout (int seconds) throws SQLException |
int | getLoginTimeout () throws SQLException |
void | connectionClosed (ConnectionEvent event) |
void | connectionErrorOccurred (ConnectionEvent event) |
Reference | getReference () throws NamingException |
String | getDatasourceName () |
void | setDatasourceName (String s) |
String | getDataSourceDescription () |
void | setDataSourceDescription (String dsDesc) |
Integer | getCurrentOpened () |
Static Public Member Functions | |
ConnectionManager | getConnectionManager (String dsname) |
00/01/08 Markus Fritz make connection pooling thread safe (with same tx) introduce MaxAge for connections optimize pooling add some 'paranoia code': test conns before returning them from the pool.
00/18/04 Jun Inamori (j-office@osa.att.ne.jp) For closing correctly all connections at server shutdown.
01/11/06 Christophe Ney cney@batisseurs.com for Lutris Technologies Added ResourceManagerListener mechanism.
02/01/15 Dean Jennings - Map instead of Hashtable for cmList
Adriana Danes
03/01/13 - Manage datasource name additionally to the jndi name for the datasource using this ConnectionManager
03/04/08 - ConnectionManager extends ReconfigDispatcher in order to send reconfiguration Notifications to ReconfigManager
03/05/23 - Introduce pool size configuration
04/09/20 - Remove ReconfigDispatcher inheritance; management features moved to new MBeans (JSR77 JDBCDataSource, JDBCDriver)
Definition at line 86 of file ConnectionManager.java.
|
Constructor for Factory Definition at line 186 of file ConnectionManager.java. References org.objectweb.jonas.jtm.TransactionService.getTransactionManager(), and org.objectweb.jonas.service.ServiceManager.getTransactionService(). |
Here is the call graph for this function:
|
Constructor for the client case
Definition at line 214 of file ConnectionManager.java. |
|
Invoked when the application calls close() on its representation of the connection.
Definition at line 539 of file ConnectionManager.java. References org.objectweb.jonas.dbm.Pool.closeConnection(), org.objectweb.jonas.dbm.PoolItem.isRME(), and org.objectweb.jonas.dbm.PoolItem.setRME(). |
Here is the call graph for this function:
|
Invoked when a fatal connection error occurs, just before an SQLException is thrown to the application.
Definition at line 559 of file ConnectionManager.java. References org.objectweb.jonas.dbm.Pool.closeConnection(), org.objectweb.jonas.dbm.PoolItem.isRME(), and org.objectweb.jonas.dbm.PoolItem.setRME(). |
Here is the call graph for this function:
|
Attempt to establish a database connection.
Definition at line 398 of file ConnectionManager.java. References org.objectweb.jonas.dbm.PoolItem.getOpenCount(), org.objectweb.jonas.dbm.PoolItem.getXACon(), org.objectweb.jonas.dbm.PoolItem.isRME(), org.objectweb.jonas.dbm.Pool.openConnection(), and org.objectweb.jonas.dbm.PoolItem.setRME(). |
Here is the call graph for this function:
|
Attempt to establish a database connection.
Definition at line 384 of file ConnectionManager.java. |
|
get the ConnectionManager matching the DataSource name Definition at line 622 of file ConnectionManager.java. |
|
Method called by the a management method in the dbm service MBean
Definition at line 668 of file ConnectionManager.java. References org.objectweb.jonas.dbm.Pool.getCurrentOpened(). Referenced by org.objectweb.jonas.dbm.DataBaseServiceImpl.getTotalCurrentNumberOfJDBCConnectionOpen(). |
Here is the call graph for this function:
|
Definition at line 654 of file ConnectionManager.java. Referenced by org.objectweb.jonas.dbm.JDBCDataSource.getDescription(). |
|
Definition at line 640 of file ConnectionManager.java. Referenced by org.objectweb.jonas.dbm.DataBaseServiceImpl.isLoadedDataSource(), org.objectweb.jonas.dbm.JDBCDataSource.JDBCDataSource(), org.objectweb.jonas.dbm.Pool.openConnection(), and org.objectweb.jonas.dbm.DataBaseServiceImpl.unloadDataSource(). |
|
Definition at line 240 of file ConnectionManager.java. Referenced by org.objectweb.jonas.dbm.DataBaseServiceImpl.getConnectionManager(), org.objectweb.jonas.dbm.JDBCDataSource.getJndiName(), org.objectweb.jonas.dbm.ConnectionManager.getReference(), org.objectweb.jonas.dbm.DataBaseServiceImpl.unbindDataSources(), and org.objectweb.jonas.dbm.DataBaseServiceImpl.unloadDataSource(). |
|
Gets the maximum time in seconds that this data source can wait while attempting to connect to a database. A value of zero means that the timeout is the default system timeout if there is one; otherwise it means that there is no timeout. When a data source object is created the login timeout is initially zero.
Definition at line 526 of file ConnectionManager.java. |
|
Get the log writer for this data source. The log writer is a character output stream to which all logging and tracing messages for this data source object instance will be printed. This includes messages printed by the methods of this object, messages printed by methods of other objects manufactured by this object, and so on. Messages printed to a data source specificlog writer are not printed to the log writer associated with the Drivermanager class. When a data source object is created the log writer is initially null, in other words, logging is disabled.
Definition at line 473 of file ConnectionManager.java. |
|
Definition at line 119 of file ConnectionManager.java. Referenced by org.objectweb.jonas.dbm.JDBCDataSource.JDBCDataSource(). |
|
Retrieves the Reference of this object. Used at binding time by JNDI to build a reference on this object.
Definition at line 586 of file ConnectionManager.java. References org.objectweb.jonas.dbm.Pool.getCheckLevel(), org.objectweb.jonas.dbm.ConnectionManager.getDSName(), org.objectweb.jonas.dbm.Pool.getMaxAge(), org.objectweb.jonas.dbm.Pool.getMaxOpenTime(), org.objectweb.jonas.dbm.Pool.getMaxWaiters(), org.objectweb.jonas.dbm.Pool.getMaxWaitTime(), org.objectweb.jonas.dbm.Pool.getPoolMax(), org.objectweb.jonas.dbm.Pool.getPoolMin(), org.objectweb.jonas.dbm.Pool.getSamplingPeriod(), and org.objectweb.jonas.dbm.Pool.getTestStatement(). |
Here is the call graph for this function:
|
This manager is in the client case or not ?
Definition at line 225 of file ConnectionManager.java. |
|
Configure the Connection pool. Called by the Container at init. Configuration can be set in datasource.properties files.
Definition at line 338 of file ConnectionManager.java. References org.objectweb.jonas.dbm.Pool.getMaxWaiters(), org.objectweb.jonas.dbm.Pool.getMaxWaitTime(), org.objectweb.jonas.dbm.Pool.getPoolMax(), org.objectweb.jonas.dbm.Pool.getPoolMin(), org.objectweb.jonas.dbm.Pool.getSamplingPeriod(), org.objectweb.jonas.dbm.Pool.setCheckLevel(), org.objectweb.jonas.dbm.Pool.setMaxAge(), org.objectweb.jonas.dbm.Pool.setMaxOpenTime(), org.objectweb.jonas.dbm.Pool.setMaxWaiters(), org.objectweb.jonas.dbm.Pool.setMaxWaitTime(), org.objectweb.jonas.dbm.Pool.setPoolMax(), org.objectweb.jonas.dbm.Pool.setPoolMin(), org.objectweb.jonas.dbm.Pool.setSamplingPeriod(), and org.objectweb.jonas.dbm.Pool.setTestStatement(). Referenced by org.objectweb.jonas.dbm.DataBaseServiceImpl.createDataSource(). |
Here is the call graph for this function:
|
Definition at line 661 of file ConnectionManager.java. Referenced by org.objectweb.jonas.dbm.DataBaseServiceImpl.createDataSource(). |
|
Definition at line 647 of file ConnectionManager.java. Referenced by org.objectweb.jonas.dbm.DataBaseServiceImpl.createDataSource(). |
|
Definition at line 247 of file ConnectionManager.java. Referenced by org.objectweb.jonas.dbm.DataBaseServiceImpl.createDataSource(). |
|
Sets the maximum time in seconds that this data source will wait while attempting to connect to a database. A value of zero specifies that the timeout is the default system timeout if there is one; otherwise it specifies that there is no timeout. When a data source object is created the login timeout is initially zero.
Definition at line 511 of file ConnectionManager.java. |
|
Set the log writer for this data source. The log writer is a character output stream to which all logging and tracing messages for this data source object instance will be printed. This includes messages printed by the methods of this object, messages printed by methods of other objects manufactured by this object, and so on. Messages printed to a data source specific log writer are not printed to the log writer associated with the Drivermanager class. When a data source object is created the log writer is initially null, in other words, logging is disabled.
Definition at line 494 of file ConnectionManager.java. |