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 Details

    • PoolingDataSourceJDBCAccess

      public PoolingDataSourceJDBCAccess()
  • Method Details

    • getConnection

      public Connection getConnection() throws SQLException
      Must be a 'new' connection with autocommit set to false. Implementations should close the connection.
      Specified by:
      getConnection in interface com.arjuna.ats.arjuna.objectstore.jdbc.JDBCAccess
      Throws:
      SQLException
    • initialise

      public void initialise(StringTokenizer stringTokenizer)
      Since we've already verified the connection in NarayanaConfigurationBean 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 interface com.arjuna.ats.arjuna.objectstore.jdbc.JDBCAccess