Recently, we have upgraded our application server from JBoss EAP6.2 to EAP7.0.
Even though it runs non-HA profile aka standalone.xml
, JBoss adds jboss.node.name
at the end of JSESSIONID
cookie.
For example,
Spring Boot generates a JSESSIONID
as tHSf9v23SSDBMqJ1O7XFJZ9....
and when the request comes to browser, the cookie becomes tHSf9v23SSDBMqJ1O7XFJZ9.master:<jboss.node.name>
which causes some compatibility issues.
I've run some experiments by manually calling response.addCookie
. In that case, it does not add master
suffix to the cookie. However, if Spring itself writes the cookie, it seems that JBoss picks it up and add master
suffix. I know this case can be little confusing (it is to me), I'm happy to provide more information.
instance-id
attribute from<subsystem xmlns="urn:jboss:domain:undertow:3.1" instance-id="node2">
– Catkin