Linder,
Last time that I looked at the PersistentManager the impression that I got was that it was not designed for use within a cluster, but rather within an isolated node. The move to a clustered mode of operation introduces many new problems into state management.
WADI (wadi.codehaus.org) is written specifically to resolve these problems. We are not yet production ready, but you may want to cast an eye over the project and, if interested in these issues, join the mailing list.
Cheers,
Jules
Linder Anna-Verena wrote:
Hi,
I have a problem with the configuration of the PersistentManager and session update times. I would like to share sessions across a cluster (managed outside of Tomcat) by having the PersistentManager write and read session data to and from a database.
I tried to configure the PersistentManager to update the session data immediately, and with Tomcat 4.1.24, this works as I would have expected. In Tomcat 5 (the version we use on the production system), the PersistentManager seems to update the session entry every 60 seconds, no matter what I set in the configuration. I have tried this with Tomcat 5.0.19 and 5.0.27, and both with the JDBCStore and the FileStore.
What am I missing? My configuration follows below (I have tried it with 0, 1 and -1 as parameters to the time intervals).
Thanks for your help! Anna Verena
------- <Context path="/myapp" docBase="D:/project/webapps/myapp" debug="0">
<Manager className="org.apache.catalina.session.PersistentManager" checkInterval="1" maxIdleBackup="0" maxIdleSwap="0" minIdleSwap="0" debug="1" > <Store className="org.apache.catalina.session.JDBCStore" debug="1" connectionURL="jdbc:postgresql://mydbserver:5432/tomcat?user=tomcatsession&password=tomcatsession" driverName="org.postgresql.Driver" sessionTable="tomcatsessions" sessionAppCol="appname" sessionDataCol="sessiondata" sessionIdCol="sessionid" sessionLastAccessedCol="lastaccess" sessionMaxInactiveCol="maxinactive" sessionValidCol="validsession" /> <!-- <Store className="org.apache.catalina.session.FileStore" debug="4" checkInterval="0" directory="D:/Java/tomcat-temp" /> --> </Manager> </Context>
________________________________
Anna Verena Linder
TNS Infratest
Landsberger Str. 338
D-80687 M�nchen
t +49 (0) 89 5600 - 1376
e anna-verena.linder <mailto:[EMAIL PROTECTED]> @tns-infratest.com
www.tns-infratest.com <http://www.tns-infratest.com/> www.tns-global.com <http://www.tns-global.com/>
________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.
If you received this in error, please contact the sender and delete the material from any computer.
-- /************************************* * Jules Gosnell * Partner * Core Developers Network (Europe) * http://www.coredevelopers.net *************************************/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
