@Override public Connection getConnection() { return xaConnectionManager.getConnection(); }
@Override public String getDatabaseIdentifier() { return xaConnectionManager.getHostName() + ":" + xaConnectionManager.getPort(); }
private void createConnectionManager() { this.xaConnectionManager = new XAConnectionManager(); xaConnectionManager.setDriverClassName("com.ibm.db2.jcc.DB2Driver"); xaConnectionManager.setHostName("my.db.host"); xaConnectionManager.setPort(12345); xaConnectionManager.setJdbcUser("user1"); xaConnectionManager.setJdbcPassword("password1"); xaConnectionManager.setMaxWait(500); xaConnectionManager.setPoolName("pet store connection pool"); xaConnectionManager.setPoolSize(10); xaConnectionManager.setInitialSize(1); xaConnectionManager.initialisePool(); }
private void createConnectionManager() { this.xaConnectionManager = new XAConnectionManager(); xaConnectionManager.setDriverClassName("com.ibm.db2.jcc.DB2Driver"); xaConnectionManager.setHostName("my.db.host"); xaConnectionManager.setPort(12345); xaConnectionManager.setJdbcUser("user1"); xaConnectionManager.setJdbcPassword("password1"); xaConnectionManager.setMaxWait(500); xaConnectionManager.setPoolName("pet store connection pool"); xaConnectionManager.setPoolSize(10); xaConnectionManager.setInitialSize(1); xaConnectionManager.initialisePool(); }
private void createConnectionManager() { this.xaConnectionManager = new XAConnectionManager(); xaConnectionManager.setDriverClassName("com.ibm.db2.jcc.DB2Driver"); xaConnectionManager.setHostName("my.db.host"); xaConnectionManager.setPort(12345); xaConnectionManager.setJdbcUser("user1"); xaConnectionManager.setJdbcPassword("password1"); xaConnectionManager.setMaxWait(500); xaConnectionManager.setPoolName("pet store connection pool"); xaConnectionManager.setPoolSize(10); xaConnectionManager.setInitialSize(1); xaConnectionManager.initialisePool(); }
@Override public String getDatabaseIdentifier() { return xaConnectionManager.getHostName() + ":" + xaConnectionManager.getPort(); }
@Override public Connection getConnection() { return xaConnectionManager.getConnection(); }
@Override public String getDatabaseIdentifier() { return xaConnectionManager.getHostName() + ":" + xaConnectionManager.getPort(); }
@Override public Connection getConnection() { return xaConnectionManager.getConnection(); }