2011/3/7 Evgeny Goldin <evge...@gmail.com>:
>
> Hi Chris,
>
>
> billybob79 wrote:
>>
>> To sum up, each time your service starts, you dynamically configure tomcat
>> for your environment. What do you gain by dynamically configuring tomcat
>> at
>> each startup?
>>
>> Couldn't you just script the dynamic configuration to occur once manually.
>> Then you could just run tomcat as a service normally? Then when/If you
>> update tomcat, you could run the script to create the configuration again?
>>
>
> Yes, I dynamically configure the apps deployed on each service restart. It
> could be done differently, the way you suggest - just run a "re-configure
> script" each time properties file is updated. But it'll make the maintenance
> of this server a bit more involved as people will need to know what is
> "re-configure script" and when it should be run. While it sounds like a
> trivial thing to do (and it is, of course) in some environment it may not be
> the case.
>

Note, that it is possible
1) to use some other class instead of Bootstrap, and delegate
start/stop commands to Bootstrap.main() afterwards
2) implement a Listener and configure it in server.xml to
programmatically configure Tomcat before it starts.
That is, if the configuration should not be done before JVM starts.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to