Looking for application server neutral way of doing this. I would still appreciate all the available options.
Asked
Active
Viewed 762 times
0
-
1Out of curiosity, what would be the purpose of doing that? – Guillaume Polet Apr 19 '12 at 08:10
-
Its a sticky session cluster. This is needed just to identify the response and server its coming from. – Santosh Apr 19 '12 at 08:31
1 Answers
0
The value of JSESSIONID depends on application server implementation of the servlet specification.
For tomcat, you can configure JSESSIONID with the jvmroute parameter in the Engine configuration : Apache Tomcat Configuration Reference.
Example: server.xml [...]
<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
[...]
HTTP Header received for a new session : [...]
Cookie:JSESSIONID=D258081D2030693CB1BD52992FFE6CFD.jvm1
[...]

Franck
- 944
- 14
- 28