protected void createConnection() throws SQLException { try { if (_theDataSource == null) createDataSource(); super.createConnection(); } catch (SQLException ex) { throw ex; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
protected void createConnection() throws SQLException { try { if (_theDataSource == null) createDataSource(); super.createConnection(); } catch (SQLException ex) { throw ex; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
protected void createConnection() throws SQLException { try { if (_theDataSource == null) createDataSource(); super.createConnection(); } catch (SQLException ex) { throw ex; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
protected void createConnection() throws SQLException { try { if (_theDataSource == null) createDataSource(); super.createConnection(); } catch (SQLException ex) { throw ex; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
public IndirectRecoverableConnection (String dbName, String user, String passwd, ConnectionImple conn) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("IndirectRecoverableConnection.IndirectRecoverableConnection ( " + dbName + ", " + user + ", " + passwd + " )"); } _dbName = dbName; _user = user; _passwd = passwd; _theArjunaConnection = conn; /* * Create a jndi specific modifier first, so that we can then * use this to find out what the end-point datasource really * is. */ com.arjuna.ats.internal.jdbc.drivers.modifiers.jndi jndiModifier = new com.arjuna.ats.internal.jdbc.drivers.modifiers.jndi(); _dbName = jndiModifier.initialise(_dbName); _theModifier = null; createDataSource(); }
public IndirectRecoverableConnection (String dbName, String user, String passwd, ConnectionImple conn) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("IndirectRecoverableConnection.IndirectRecoverableConnection ( " + dbName + ", " + user + ", " + passwd + " )"); } _dbName = dbName; _user = user; _passwd = passwd; _theArjunaConnection = conn; /* * Create a jndi specific modifier first, so that we can then * use this to find out what the end-point datasource really * is. */ com.arjuna.ats.internal.jdbc.drivers.modifiers.jndi jndiModifier = new com.arjuna.ats.internal.jdbc.drivers.modifiers.jndi(); _dbName = jndiModifier.initialise(_dbName); _theModifier = null; createDataSource(); }
public IndirectRecoverableConnection (String dbName, String user, String passwd, ConnectionImple conn) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("IndirectRecoverableConnection.IndirectRecoverableConnection ( " + dbName + ", " + user + ", " + passwd + " )"); } _dbName = dbName; _user = user; _passwd = passwd; _theArjunaConnection = conn; /* * Create a jndi specific modifier first, so that we can then * use this to find out what the end-point datasource really * is. */ com.arjuna.ats.internal.jdbc.drivers.modifiers.jndi jndiModifier = new com.arjuna.ats.internal.jdbc.drivers.modifiers.jndi(); _dbName = jndiModifier.initialise(_dbName); _theModifier = null; createDataSource(); }
public IndirectRecoverableConnection (String dbName, String user, String passwd, ConnectionImple conn) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("IndirectRecoverableConnection.IndirectRecoverableConnection ( " + dbName + ", " + user + ", " + passwd + " )"); } _dbName = dbName; _user = user; _passwd = passwd; _theArjunaConnection = conn; /* * Create a jndi specific modifier first, so that we can then * use this to find out what the end-point datasource really * is. */ com.arjuna.ats.internal.jdbc.drivers.modifiers.jndi jndiModifier = new com.arjuna.ats.internal.jdbc.drivers.modifiers.jndi(); _dbName = jndiModifier.initialise(_dbName); _theModifier = null; createDataSource(); }
public IndirectRecoverableConnection (String dbName, String user, String passwd, ConnectionImple conn) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("IndirectRecoverableConnection.IndirectRecoverableConnection ( " + dbName + ", " + user + ", " + passwd + " )"); } _dbName = dbName; _user = user; _passwd = passwd; _theConnection = null; _theDataSource = null; _theXAResource = null; _theTransaction = null; _theArjunaConnection = conn; /* * Create a jndi specific modifier first, so that we can then * use this to find out what the end-point datasource really * is. */ com.arjuna.ats.internal.jdbc.drivers.modifiers.jndi jndiModifier = new com.arjuna.ats.internal.jdbc.drivers.modifiers.jndi(); _dbName = jndiModifier.initialise(_dbName); _theModifier = null; createDataSource(); }
public IndirectRecoverableConnection (String dbName, String user, String passwd, ConnectionImple conn) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("IndirectRecoverableConnection.IndirectRecoverableConnection ( " + dbName + ", " + user + ", " + passwd + " )"); } _dbName = dbName; _user = user; _passwd = passwd; _theConnection = null; _theDataSource = null; _theXAResource = null; _theTransaction = null; _theArjunaConnection = conn; /* * Create a jndi specific modifier first, so that we can then * use this to find out what the end-point datasource really * is. */ com.arjuna.ats.internal.jdbc.drivers.modifiers.jndi jndiModifier = new com.arjuna.ats.internal.jdbc.drivers.modifiers.jndi(); _dbName = jndiModifier.initialise(_dbName); _theModifier = null; createDataSource(); }
private final void createConnection () throws SQLException { try { if (_theDataSource == null) createDataSource(); if ((_user == null) && (_passwd == null)) _theConnection = _theDataSource.getXAConnection(); else _theConnection = _theDataSource.getXAConnection(_user, _passwd); } catch (SQLException ex) { throw ex; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
private final void createConnection () throws SQLException { try { if (_theDataSource == null) createDataSource(); if ((_user == null) && (_passwd == null)) _theConnection = _theDataSource.getXAConnection(); else _theConnection = _theDataSource.getXAConnection(_user, _passwd); } catch (SQLException ex) { throw ex; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
private final void createConnection () throws SQLException { try { if (_theDataSource == null) createDataSource(); if ((_user == null) && (_passwd == null)) _theConnection = _theDataSource.getXAConnection(); else _theConnection = _theDataSource.getXAConnection(_user, _passwd); } catch (SQLException ex) { throw ex; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
public IndirectRecoverableConnection (String dbName, String user, String passwd, ConnectionImple conn) throws SQLException { if (jdbcLogger.logger.isDebugEnabled()) { jdbcLogger.logger.debug(DebugLevel.CONSTRUCTORS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jdbc.logging.FacilityCode.FAC_JDBC, "IndirectRecoverableConnection.IndirectRecoverableConnection ( "+dbName+", "+user+", "+passwd+" )"); } _dbName = dbName; _user = user; _passwd = passwd; _theConnection = null; _theDataSource = null; _theXAResource = null; _theTransaction = null; _theArjunaConnection = conn; /* * Create a jndi specific modifier first, so that we can then * use this to find out what the end-point datasource really * is. */ com.arjuna.ats.internal.jdbc.drivers.modifiers.jndi jndiModifier = new com.arjuna.ats.internal.jdbc.drivers.modifiers.jndi(); _dbName = jndiModifier.initialise(_dbName); _theModifier = null; createDataSource(); }