logo       

Re: Enhydra 5.1: msg#00002

java.enhydra.general

Subject: Re: Enhydra 5.1

Hi Alfred!

good to see that the Enhydra development continues... Should we send you whish
lists with stuff that should be integrated into 5.1?

One thing for me would be a method in the StandardSessionManager.java: A
variant of the getSession method which does not alter the "last used"
timestamp. See the code below - its from Mike Schuber, not me.

Thank you for your work on Enhydra!

/**
* Lookup the <code>Session</code> object associated with the
* specified session key. <P>
*
* Each time a session is returned via this method, the session's
* last used (referenced) time is NOT!!! updated to the current time.
*
* This method is for save reporting without change the last time used.
*
* @param thread the thread to associate with the session.
* @param sessionKey The String used to reference a
* <code>Session</code> object.
* @return If the key is associated with an active session, then
* the corresponding <code>Session</code> object is
* returned. Otherwise <code>null</code> is returned.
* @see Session
* @see StandardSession#touch
* @exception SessionException
* If the session cannot be retrieved.
* @author schubi@xxxxxxxxxxxxxx
*/
public synchronized Session getSaveSession(Thread thread, String
sessionKey)
throws SessionException {
keyGenerator.incrementRandomCounter();
StandardSession session =
(StandardSession)sessionHome.getSession(thread, sessionKey);
if (session != null) {
// session.touch();
} else {
sessionUserTable.remove(sessionKey);
}
return session;
}


--
Dipl. Inform. Boris Klug, control IT GmbH, Germany


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise