Caldarale, Charles R wrote:
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Subject: Re: Storing webapp startup parameters
A JNDI browser might simplify this for you if you can either deploy it
into your existing application, or if you can somehow connect
to it from the outside.
Doesn't Tomcat's admin app have this capability, including handling
<Environment> entries specified in server.xml? The default server.xml
contains this sample:
<Environment name="simpleValue" type="java.lang.Integer"
value="30"/>
By using admin -> Resources -> Environment Entries -> simpleValue, you
can change the 30 to any desired integer on the fly. The result should
be immediately visible to any code looking it up. Using the Commit
button preserves the value across Tomcat restarts by rewriting
server.xml.
I thought the webapp had to be bounced for this to take effect, but I'd
love to be proven wrong about that! I'll play with it a bit.
Dave.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]