852853854855856857858859860861862
((StandardSession)session).activate(); // endAccess() to ensure timeouts happen correctly. // access() to keep access count correct or it will end up // negative session.access(); session.endAccess(); } } } // Make sure the lock is removed
135136137138139140141142143144145
session.setManager(manager); // session.setId(sessionId); Only if new ??? manager.add(session); // ((StandardSession)session).activate(); session.access(); session.endAccess(); } } } } }
626627628629630631632633634635636
} case SessionMessage.EVT_SESSION_ACCESSED :{ Session session = findSession(msg.getSessionID()); if ( session != null ) { session.access(); session.endAccess(); } break; } default: { //we didn't recognize the message type, do nothing
140141142143144145146147148149150
493494495496497498499500501502503
session = super.findSession(session.getIdInternal()); if(session != null){ // To keep any external calling code from messing up the // concurrency. session.access(); session.endAccess(); } } } if (session != null) return (session);
735736737738739740741742743744745
635636637638639640641642643644645
794795796797798799800801802803804
session.setManager(this); // make sure the listeners know about it. ((StandardSession)session).tellNew(); add(session); ((StandardSession)session).activate(); session.endAccess(); return (session); }
795796797798799800801802803804805
967968969970971972973974975976977
sess.access(); sess.getSession().setAttribute("test", "test"); jbcm.storeSession(sess); sess.endAccess(); } return sess; }