0 Replies Latest reply on May 27, 2004 8:28 AM by Xavier MOGHRABI

    How can I configure Tomcat to use PersistentManager ?

    Xavier MOGHRABI Newbie

      Hello,

      I'd like to use the PersistentManager of Tomcat to store active sessions in a table of a DBMS as explained in a Tomcat documentation : http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/manager.html.

      I thought I should configure it in "jboss-service.xml" of jbossweb-tomcat41.sar like this :

      ...
      <DefaultContext cookies="true" crossContext="true" override="true">
      <Manager className="org.apache.catalina.session.PersistentManager" debug="10" saveOnRestart="true" checkInterval="1" maxActiveSessions="-1" minIdleSwap="-1" maxIdleSwap="0" maxIdleBackup="0">
      <Store className="org.apache.catalina.session.JDBCStore" debug="9" connectionURL="jdbc:sapdb://192.168.1.3/COCHISE?user=DBA&amp;password=DBA" driverName="com.sap.dbtech.jdbc.DriverSapDB"
       sessionAppCol="app_name"
       sessionDataCol="session_data"
       sessionIdCol="session_id"
       sessionLastAccessedCol="last_access"
       sessionMaxInactiveCol="max_inactive"
       sessionTable="DBA.tomcat_sessions"
       sessionValidCol="valid_session"/>
       </Manager>
      </DefaultContext>
      ...
      


      However it doesn't look to work because I don't have any session stored in the table while using a web application.

      Does anybody know how I can do it ?

      Xavier