Hi,

>1. The original question was if there is some highly tomcat-specific
code
>that enables a reboot at runtime. Spending very little time going
through
>the source code of catalina, it seems to me that even highly tomcat-
>specific code does not support a reboot a runtime.

This is true, which is why I said a simple No to the original post as
asked.  Other people have since taken other approaches, but none nail
the original question.

>2. One solution could be to call a shell script from within the
>webapplication running on Tomcat, reboot Tomcat, accepting in this way
that
>the application and tomcat will be unavailable during some reboot time.
On
>the other hand, this could not be regarded as a good coding practice,
in my
>opinion.

I agree in general, though under specific circumstances (highly
controlled environments) this could be fine.

>3. Another solution could be to have the application create a new
process
>in the JVM responsible for stopping and starting the tomcat service.
But
>then again this process could only do so by calling a script as in the
>solution proposed in 2, with it same consequences (seems to me I might
as
>well be wrong).

Yup, that's an option.  The Classloader issues could be HORRENDOUS.

>NB As a relative novice to Tomcat it astonishs me that the Tomcat
Manager
>does not provide the functionnality to reboot the server at runtime
(taking
>in account that it services become unavailable during reboot time).

Show me a server that does.  Nearly all let you reload apps, some let
you update JNDI entries etc, a few let you add new connectors etc., but
a complete reboot meaning a new JVM process is different.

Yoav




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to