• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using attribute jvmRoute

 
Greenhorn
Posts: 6
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings,

In Tomcat's server.xml file, there's a Engine tag with attribute jvmRoute, like this :
<Engine name="Catalina" defaultHost="svr-myapp1" jvmRoute="server1">

Based on my research, I know this attribute is used in conjunction with the Apache load balancer. In the project which I currently working on, load balancing of two Tomcat servers is done by F5 Network, and it doesn't use the jvmRoute attribute. My question is, is it safe to just add this attribute in the server.xml, or will this have consequences?

The reason is need the jvmRoute attribute is because I'm need to store all session IDs created by the container in the DB. With jvmRoute, I can differentiate the session ID whether they were created by server1 or server2. Attribute jvmRoute will append the string specified in every session IDs created, for e.g D3743GDUI38484.server1. I would also appreciate any other suggestion to make server indicator appear with the session ID. Thanks.

Jason
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

as you already wrote, tomcat will add the jvmRoute to the JSESSIONID (<JSESSIONID>.<JVMROUTE>). If that is no problem for the F5 Network than i would
say there is no consequence.

Volker
 
Jayson Chelliah
Greenhorn
Posts: 6
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Volker. I will decide whether to proceed the changes.
reply
    Bookmark Topic Watch Topic
  • New Topic