Issue in load balancer for Orbeon cross context setup

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Issue in load balancer for Orbeon cross context setup

Ingoba
Hi,

I am using Orbeon seperate deplyment with my application developed in JSF. From JSF page to XFORMS, I transfered the control using the following code:

FacesContext fc = FacesContext.getCurrentInstance();
fc.getExternalContext().redirect("/my-app/xforms-jsp/configjsp/config.jsp");

On the XFORMS page, the following is the action submission code:

 <xf:submission action="/my-app/action"
                               method="post" id="change"
                               replace="instance">
                               
                        <xf:action ev:event="xforms-submit-done">
  <xf:load resource="/my-app/faces/jsp/files.jsp"/>
                                </xf:action>
</xf:submission>

/my-app/action is a Servlet.

The cross context setup code is:

<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
           
            <Context path="/my-app" docBase="/my-app" crossContext="true"/>

             </Host>

If the application is used in single server, it is working properly.

The application is deployed in load balancer having two servers(2 tomcats say Server 1 & Server 2) with session sticky configuration. It is working fine before session timed out.

After session timed out ,user login the application through Server 1. But when the submit happens from the XFORMS(written in JSP) page, the controls went to Server 2 resulting in new session and loose of session data. Interesting thing is next page is a JSF page and it is served by Server 1 again.

Is there any problem with my cross context set up?
I am totally confused what is happening. Please help me.

Thanks,
Ingoba
the submit happens to