Package org.frankframework.jta.narayana
Class PoolingDataSourceJDBCAccess
java.lang.Object
org.frankframework.jta.narayana.PoolingDataSourceJDBCAccess
- All Implemented Interfaces:
com.arjuna.ats.arjuna.objectstore.jdbc.JDBCAccess
public class PoolingDataSourceJDBCAccess
extends Object
implements com.arjuna.ats.arjuna.objectstore.jdbc.JDBCAccess
Alternative to
DataSourceJDBCAccess
that adds connection pooling, instead of doing a JNDI lookup each time a connection is called.
getConnection()
will be called for every transaction, pooling will drastically improve performance.- Author:
- Niels Meijer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMust be a 'new' connection with autocommit set to false.void
initialise
(StringTokenizer stringTokenizer) Since we've already verified the connection inNarayanaConfigurationBean
we can almost be certain this won't fail.
-
Constructor Details
-
PoolingDataSourceJDBCAccess
public PoolingDataSourceJDBCAccess()
-
-
Method Details
-
getConnection
Must be a 'new' connection with autocommit set to false. Implementations should close the connection.- Specified by:
getConnection
in interfacecom.arjuna.ats.arjuna.objectstore.jdbc.JDBCAccess
- Throws:
SQLException
-
initialise
Since we've already verified the connection inNarayanaConfigurationBean
we can almost be certain this won't fail. In case such a thing does happen, throw a fatal exception because we may absolutely not continue initializing the application.- Specified by:
initialise
in interfacecom.arjuna.ats.arjuna.objectstore.jdbc.JDBCAccess
-