Reply to self: I'm dumb. Didn't read through all of the threads before
answering, and by reading the other answers I learned, that -DjvmRoute
is actually supposed to work too, which is confirmed by the
StandardEngine class. Oh well ...
Regards,
Rainer
Rainer Jung schrieb:
Bill Shaffer schrieb:
Hi:
I am trying to find a way to set the jvmRoute without putting it in
my server.xml. I'm using 6.0.18. I've found a couple of things:
The Tomcat config reference System Properties section says I can set
it on the java command line with a -DjvmRoute option. This did not
work.
It will not, except as a special case to your next example.
Another source on the web said that I could set a -D option on the
command line and then reference that as a variable within server.xml
(java ... -Doption=value ..., and then in server.xml,
jvmRoute="${option}". This did not work either.
This should really work. Maybe when editing server.xml and replacing the
jvmRoute value with your ${option} you didn't notice, that the config
line using jvmRoute in server.xml by default is only a comment?
By testing to see if it works I'm going to the servlet examples and
inspecting the Session ID in the Sessions Example.
You test is fine.
Any help would be greatly appreciated.
You could also look at the system properties from inside any of your
JSPs or servlet to make sure, that the system property "option" actually
has been set correctly by your start script.
Regards,
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]