Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using attribute jvmRoute

 
Royston Nadar
Greenhorn
Posts: 6
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
 
Volker Weinberger
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Royston Nadar
Greenhorn
Posts: 6
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Volker. I will decide whether to proceed the changes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic