Hi
I'm configuring my two node tomcat 7 service in AWS with Database
Session Store. I did the following steps:
1.- Configured JAVA_OPTS with
-Dorg.apache.catalina.session.StandardSession.ACTIVITY_CHECK=true
2.- Configured context.xml with:
<Manager className='org.apache.catalina.session.PersistentManager'
saveOnRestart='false' minIdelSwap='0' maxIdleSwap='0'
maxIdleBackup='1'>
<Store className="org.apache.catalina.session.JDBCStore"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="url"
sessionTable="tomcat_sessions" sessionIdCol="session_id"
sessionDataCol="session_data" sessionValidCol="valid_session"
sessionMaxInactiveCol="max_inactive"
sessionLastAccessedCol="last_access" sessionAppCol='app_name'/>
</Manager>
3.- Created the database table.
4.- My war files have <distributable/> element on web.xml
5.- The objects stored in session are serializable.
When I test the cluster shutting down one node the sessions don't
appear to be reading from the other node and I get the login page.
Any ideas?
Regards,
Néstor Boscán
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]