[jboss-dev-forums] [Design of JBoss/Tomcat Integration] - Programmatic configuration of jvmRoute
bstansberry@jboss.com
do-not-reply at jboss.com
Thu Oct 25 13:55:52 EDT 2007
JBoss Messaging has introduced a requirement that all nodes in a cluster be given a unique id (see http://jira.jboss.com/jira/browse/JBMESSAGING-1121). Since we now have the requirement I'd like to brainstorm a bit about how that id could be used across all cases in the AS where we want to uniquely identify nodes.
The obvious one that comes to mind is the Tomcat jvmRoute.
For now, let's assume that the JBM unique id is represented by system property "server.peer.id". (Also assume we'll come up a more generic name for the property.)
A simple thing to do would be to hard code the following into the std server.xml:
<Engine name="jboss.web" defaultHost="localhost" jvmRoute="${server.peer.id:0}>
Downside to that is we now dot append the id (or default 0) to every session id, even if we aren't using JK. That's probably no big deal; anyone see a reason why it would be?
If it is a problem, perhaps we could leave the jvmRoute attribute out of server.xml and programatically call Engine.setJvmRoute() if the TomcatDeployer's useJK property is set to true. That seems pretty clunky though.
Note that JBM requires that the id be a non-negative integer.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098951#4098951
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098951
More information about the jboss-dev-forums
mailing list