Can I configure sticky sessions in JBoss and mod_jk in a non-clustered loadbalanced setup?

Solution Verified - Updated -

Issue

  • There exists a requirement for a high availability site but clustering is not essential.  Regardless of the situation sticky sessions are always recommended to be used, but is this viable in a non-clustered setup?

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 4.2
    • 4.3
    • 5
  • mod_proxy / mod_jk / mod_cluster
  • JBoss/EAP started in a non-clustered server configuration (minimal or default)
  • jvmRoute is set on each server.xml Engine element in JBoss Web

  • UseJK is set to true in each jboss-service.xml in JBoss Web

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.