Hi,
Why are you doing this at all?  Any time you try to circumvent the Servlet 
Specification this way, you'll get burned in the long run.

More specifically, any solution you come up with here will be specific not only to 
tomcat, but to this tomcat version, as the fa�ade or its implementation may change 
with future releases.

A neater way to do this if you have to, is to get the session, set and then remove an 
attribute in it.  That'll update the access time.


Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Balunas, Jay [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 11, 2004 9:29 AM
>To: [EMAIL PROTECTED]
>Subject: Can you ever update a sessions access time?
>
>All,
>
>I need to update a session access time (as if a request had just occurred).
>
>I have a application that sends a "keep-a-live" message to tomcat (with a
>sessionID).  I wrote a session tracker to retrieve the already created
>session (via an earlier web-page request)
>
>When I our servlet receives the keep-a-live message it retrieves the
>session and must mark it as having been accessed.
>
>I have looked through the tomcat source and what I really need to do is to
>access the "ServerSession.touch(long)" method. This is protected within
>"HttpSessionFacade" class.
>
>Is there any other way to do this?
>
>Thanks,
>Jay
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to