Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7205

Redeployment of session doesn't acquire session state

XMLWordPrintable

    • Workaround Exists
    • Hide

      Edit the server/<config_name>/deploy/cluster/jboss-cache-manager.sar/META-INF/jboss-cache-manager-jboss-beans.xml file. Find the "standard-session-cache" configuration section and set the following properties to "true"

      <property name="useRegionBasedMarshalling">true</property>
      <!-- Must match the value of "useRegionBasedMarshalling" -->
      <property name="inactiveOnStartup">true</property>

      Show
      Edit the server/<config_name>/deploy/cluster/jboss-cache-manager.sar/META-INF/jboss-cache-manager-jboss-beans.xml file. Find the "standard-session-cache" configuration section and set the following properties to "true" <property name="useRegionBasedMarshalling">true</property> <!-- Must match the value of "useRegionBasedMarshalling" --> <property name="inactiveOnStartup">true</property>

      Here's the scenario:

      • Start instances A and B in a cluster, the webapp is session.war (exploded WAR)
      • Create a session, say its session-id is sessionId.A
      • Go to A and remove the WAR, e.g. cd ./deploy ; mv session.war session.war.bak
      • Refresh the session. It fails over to B: sessionId.B
      • Go back to A (/deploy dir) and mv session.war.bak session.war
      • Go to B and remove the session
        ==> The session will fail back to A, but the session's data is gone !

              smarlow1@redhat.com Scott Marlow
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: