On 14/01/2011 14:56, Reinwald Warapen wrote:
> Hey,
> Im am migrating my webapp from Resin to Tomcat 6. In Resin there is an
> option to "always save sessions" and "always load sessions" from the
> persistent store (mysql db). Ive configured my tomcat instance to use
> the JDBC for the persistence of sessions.
> (http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html ). But the
> sessions are stored only when Tomcat shutsdown/restarts or if the idle
> time has exceeded. There is no mention of how to "always save" and
> "always load sessions" from the db.
> 
> My requirement is such that I want to run two standalone instances of
> Tomcat (not using clustering) and for every request it loads the session
> from the database and saves it back.
> 
> Can you please tell me if this is possible in Tomcat . If yes, how.

>From looking at the source code, setting maxIdleSwap to zero should do
the trick.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to