Our JBoss server.xml file has this line:
<Engine name="jboss.web" defaultHost="localhost" jvmRoute="app_server_01">
Is there any way to get the jvmroute value (in this case app_server_01
) at runtime using Java?
Background
We've got session affinity (sticky sessions) configured between our app servers and Apache servers. JBoss appends the jvmroute (app_server_01) to the JSESSIONID. We have multiple apps configured on a single host, but running on different app servers. We want to append the appropriate jvmroute to the JSESSIONID using a servlet filter.