Sessions lost when using apps on different non-clustered JBoss instanced behind Apache

Solution Verified - Updated -

Issue

I have loadbalancer based on Apache and AJP and application servers behind it. One of apps is OpenSSO running on one set of servers, it uses JSESSIONID cookie to locate servers. The other app is running other servers, it's also using JSESSIONID.
It looks like when I try to access my app sso creates cookie JSESSIONID with session ID and node route. I think Apache doesn't know which JBoss server it should be used, because JSESSIONID contains this information only for SSO, not for my app. So sticky sessions are not working with JBoss based app, both servers are used.

Environment

  • JBoss Enterprise Application Platform (EAP) 4.3
  • Tomcat 6
  • Apache with mod_jk

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content