Simha,
There are some issues with this.  I am currently trying to implement a 
jdbcsessionmanager and am constantly hitting road blocks.  I created my own 
JdbcSession object and then found out that while HttpRequestBase gets the session from 
the manager, it does not ask for the fa�ade from the manager (WTF!?!).  If you ONLY 
wish to use the DB as a persistant store you can just follow the documentation on the 
site for using JDBCStore with persistant manager. (look in the manager section of the 
config ref in the online docs)  Back to my problem.  I am using the InstanceEvent to 
tell me when the call to service() has completed so that I can save my session to the 
DB.  This thing is passed ServletRequest object and not a cataline Request object.  
This means that I have no access as far as I can tell to the context.  Thus I can't 
actually get to my jdbcSession object.  I have to create my own hashmap using 
getAttributeNames and then save that to the DB every time someone updates their 
session.  My biggest problem is caused by the fact that since we don't use a sticky 
server and we wish to have the DB provide our persistance I can't store a list of 
in-use sessions in the manager.  Ugh.  All this mess because the manager don't manage 
ALL aspects of its sessions (the fa�ade for example).

> -----Original Message-----
> From: Tim Funk [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 01, 2003 4:51 PM
> To: Tomcat Users List
> Subject: Re: Retrieving session by the ID
> 
> 
> 
> You can get your sessionid by looking at the methods contained in the 
> HttpServletRequest class.
> 
> -Tim
> 
> Simha, Kailas wrote:
> > How can I load the session, retrieving it from a db upon 
> request by the
> > client?
> > Thanks,
> > Kailas
> >  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to