file.createNewFile(); fos = new FileOutputStream(file); willPassivate(); save(fos); IO.close(fos);
file.createNewFile(); fos = new FileOutputStream(file); willPassivate(); save(fos); IO.close(fos);
file.createNewFile(); fos = new FileOutputStream(file); willPassivate(); save(fos); IO.close(fos);
file.createNewFile(); fos = new FileOutputStream(file); willPassivate(); save(fos); if (reactivate)
file.createNewFile(); fos = new FileOutputStream(file); willPassivate(); save(fos); IO.close(fos);
synchronized void save(boolean reactivate) throws Exception { // Only idle the session if not already idled and no previous save/idle has failed if (!isIdled() && !_saveFailed) { if (LOG.isDebugEnabled()) LOG.debug("Saving {} {}",super.getId(),reactivate); try { willPassivate(); save(); if (reactivate) didActivate(); else clearAttributes(); } catch (Exception e) { LOG.warn("Problem saving session " + super.getId(), e); _idled=false; // assume problem was before _values.clear(); } } }
synchronized void save(boolean reactivate) throws Exception { // Only idle the session if not already idled and no previous save/idle has failed if (!isIdled() && !_saveFailed) { if (LOG.isDebugEnabled()) LOG.debug("Saving {} {}",super.getId(),reactivate); try { willPassivate(); save(); if (reactivate) didActivate(); else clearAttributes(); } catch (Exception e) { LOG.warn("Problem saving session " + super.getId(), e); _idled=false; // assume problem was before _values.clear(); } } }
synchronized void save(boolean reactivate) throws Exception { // Only idle the session if not already idled and no previous save/idle has failed if (!isIdled() && !_saveFailed) { if (LOG.isDebugEnabled()) LOG.debug("Saving {} {}",super.getId(),reactivate); try { willPassivate(); save(); if (reactivate) didActivate(); else clearAttributes(); } catch (Exception e) { LOG.warn("Problem saving session " + super.getId(), e); _idled=false; // assume problem was before _values.clear(); } } }
synchronized void save(boolean reactivate) throws Exception { // Only idle the session if not already idled and no previous save/idle has failed if (!isIdled() && !_saveFailed) { if (LOG.isDebugEnabled()) LOG.debug("Saving {} {}",super.getId(),reactivate); try { willPassivate(); save(); if (reactivate) didActivate(); else clearAttributes(); } catch (Exception e) { LOG.warn("Problem saving session " + super.getId(), e); _idled=false; // assume problem was before _values.clear(); } } }