/** * This method is used to reset connections from the session to the database. Please * Note that this will not work with a SessionBroker at this time */ public void resetAllConnections() { if (ClassConstants.ServerSession_Class.isAssignableFrom(getSession().getClass())) { Iterator enumtr = ((ServerSession)getSession()).getConnectionPools().values().iterator(); while (enumtr.hasNext()) { ConnectionPool pool = (ConnectionPool)enumtr.next(); pool.shutDown(); pool.startUp(); } } else if (ClassConstants.PublicInterfaceDatabaseSession_Class.isAssignableFrom(getSession().getClass())) { getSession().getAccessor().reestablishConnection(getSession()); } }
/** * This method is used to reset connections from the session to the database. Please * Note that this will not work with a SessionBroker at this time */ public void resetAllConnections() { if (ClassConstants.ServerSession_Class.isAssignableFrom(getSession().getClass())) { Iterator enumtr = ((ServerSession)getSession()).getConnectionPools().values().iterator(); while (enumtr.hasNext()) { ConnectionPool pool = (ConnectionPool)enumtr.next(); pool.shutDown(); pool.startUp(); } } else if (ClassConstants.PublicInterfaceDatabaseSession_Class.isAssignableFrom(getSession().getClass())) { getSession().getAccessor().reestablishConnection(getSession()); } }
/** * This method is used to reset connections from the session to the database. Please * Note that this will not work with a SessionBroker at this time */ public synchronized void resetAllConnections() { if (ClassConstants.ServerSession_Class.isAssignableFrom(getSession().getClass())) { Iterator enumtr = ((ServerSession)getSession()).getConnectionPools().values().iterator(); while (enumtr.hasNext()) { ConnectionPool pool = (ConnectionPool)enumtr.next(); pool.shutDown(); pool.startUp(); } } else if (ClassConstants.PublicInterfaceDatabaseSession_Class.isAssignableFrom(getSession().getClass())) { getSession().getAccessor().reestablishConnection(getSession()); } }
/** * This method is used to reset connections from the session to the database. Please * Note that this will not work with a SessionBroker at this time */ public void resetAllConnections() { if (ClassConstants.ServerSession_Class.isAssignableFrom(getSession().getClass())) { Iterator enumtr = ((ServerSession)getSession()).getConnectionPools().values().iterator(); while (enumtr.hasNext()) { ConnectionPool pool = (ConnectionPool)enumtr.next(); pool.shutDown(); pool.startUp(); } } else if (ClassConstants.PublicInterfaceDatabaseSession_Class.isAssignableFrom(getSession().getClass())) { getSession().getAccessor().reestablishConnection(getSession()); } }
accessor.reestablishConnection(this); accessor.beginTransaction(this); return null;
databaseException.getAccessor().reestablishConnection(this); break; } catch (DatabaseException ex) {
accessor.reestablishConnection(this); accessor.beginTransaction(this); return null;
databaseException.getAccessor().reestablishConnection(this); break; } catch (DatabaseException ex) {
databaseException.getAccessor().reestablishConnection(this); break; } catch (DatabaseException ex) {
databaseException.getAccessor().reestablishConnection(this); break; } catch (DatabaseException ex) {