private final void createDataSource () throws SQLException { try { if (_theDataSource == null) { Hashtable env = jdbcPropertyManager.getJDBCEnvironmentBean().getJndiProperties(); Context ctx = new InitialContext(env); _theDataSource = (XADataSource) ctx.lookup(_dbName); } if (_theDataSource == null) { throw new SQLException(jdbcLogger.i18NLogger.get_jndierror()); } } catch (SQLException ex) { throw ex; } catch (Exception e) { jdbcLogger.logger.error(e); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
private final void createDataSource () throws SQLException { try { if (_theDataSource == null) { Hashtable env = jdbcPropertyManager.getJDBCEnvironmentBean().getJndiProperties(); Context ctx = new InitialContext(env); _theDataSource = (XADataSource) ctx.lookup(_dbName); } if (_theDataSource == null) { throw new SQLException(jdbcLogger.i18NLogger.get_jndierror()); } } catch (SQLException ex) { throw ex; } catch (Exception e) { jdbcLogger.logger.error(e); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
private final void createDataSource () throws SQLException { try { if (_theDataSource == null) { Hashtable env = jdbcPropertyManager.getJDBCEnvironmentBean().getJndiProperties(); Context ctx = new InitialContext(env); _theDataSource = (XADataSource) ctx.lookup(_dbName); } if (_theDataSource == null) { throw new SQLException(jdbcLogger.i18NLogger.get_jndierror()); } } catch (SQLException ex) { throw ex; } catch (Exception e) { jdbcLogger.logger.error(e); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
private final void createDataSource () throws SQLException { try { if (_theDataSource == null) { Hashtable env = jdbcPropertyManager.getJDBCEnvironmentBean().getJndiProperties(); Context ctx = new InitialContext(env); _theDataSource = (XADataSource) ctx.lookup(_dbName); } if (_theDataSource == null) { throw new SQLException(jdbcLogger.i18NLogger.get_jndierror()); } } catch (SQLException ex) { throw ex; } catch (Exception e) { jdbcLogger.logger.error(e); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
private final void createDataSource () throws SQLException { try { if (_theDataSource == null) { Hashtable env = jdbcPropertyManager.getJDBCEnvironmentBean().getJndiProperties(); Context ctx = new InitialContext(env); _theDataSource = (XADataSource) ctx.lookup(_dbName); } if (_theDataSource == null) { throw new SQLException(jdbcLogger.i18NLogger.get_jndierror()); } } catch (SQLException ex) { throw ex; } catch (Exception e) { jdbcLogger.logger.error(e); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
private final void createDataSource () throws SQLException { try { if (_theDataSource == null) { Hashtable env = jdbcPropertyManager.getJDBCEnvironmentBean().getJndiProperties(); Context ctx = new InitialContext(env); _theDataSource = (XADataSource) ctx.lookup(_dbName); } if (_theDataSource == null) { throw new SQLException(jdbcLogger.i18NLogger.get_jndierror()); } } catch (SQLException ex) { throw ex; } catch (Exception e) { jdbcLogger.logger.error(e); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }