tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Néstor Boscán <nesto...@gmail.com>
Subject Fwd: Problem with clustering using Database Session Store
Date Sun, 11 Aug 2013 11:17:02 GMT
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message