Announcement Announcement Module
Collapse
No announcement yet.
Issue with Spring WebFlow 2.0.9 flow state replication in clustered environment Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Issue with Spring WebFlow 2.0.9 flow state replication in clustered environment

    I have a 2 node JBoss clustered environment, using mod_jk as the load balancer.
    Mod_jk is setup with sticky sessions.

    The application has the <distributable /> element defined.

    I have added the jboss-web.xml below:
    Code:
    <?xml version="1.0"?>
    <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">
    
    <jboss-web>
       
    	<replication-config>
    		<cache-name>standard-session-cache</cache-name>
    		<replication-trigger>SET</replication-trigger>
    		<replication-granularity>SESSION</replication-granularity>
    	</replication-config>
    	
    	<max-active-sessions>10</max-active-sessions>
    
    </jboss-web>
    I have added the <persistence-context/> element in the parent flow definition for the application.

    I have added <prop key="hibernate.session_factory_name">lead_list_db_ session_factory</prop> to the hibernate session factory bean definition.

    With 2 nodes running, I enter the application, start a flow, then shut down the node that was handling the flow.
    When I try to go to the next step in the flow, nothing happens. There is no error in the server.log, nor is there an error in the apache http server logs.
    However, if I go to a different area in the application that starts a new flow, I have to click that link twice. But, on the second click it works fine and the requests are being handled by the second node. That shows that session replication is working, but the flow state replication is not.

    Any assistance that you can provide is greatly appreciated.
Working...
X