1 Reply Latest reply on Nov 2, 2012 12:16 PM by t3rm1

    Problem with configuration of session replication

    t3rm1 Newbie

      Hi,

       

      I'm currently testing how session replication in JBoss 7.1.1 is working and encountered a small problem. I want session replication to occour only when I call setAttribute() on the session. For this I created this jboss-web.xml in the WEB-INF folder:

       

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-web version="6.0"
                 xmlns="http://www.jboss.com/xml/ns/javaee"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-web_6_0.xsd">
      
          <replication-config>
              <replication-trigger>SET</replication-trigger>
              <replication-granularity>SESSION</replication-granularity>
          </replication-config>
      
      </jboss-web>
      

       

      Unfortunately it seems it isn't working. When I call

      ((MyCustomClass)session.getAttribute("object")).setTime("POOF")
      

      my seesion is being replicated to all nodes in the same cluster although I didn't call .setAttribute() on the session.

       

      Any ideas what might be wrong?