En l'instant précis du 10/08/07 15:45, [EMAIL PROTECTED]
s'exprimait en ces termes:
> Hi everybody,
>
> I would like to know what really happen when tomcat is
> restarted. This is because I need to know the risks of
> restarting during production time. 
>
> I mean, if, for example, a servlet is running and
> at that moment I restart, does tomcat will wait until
> the jvm finishes and give the generated response or it
> will just kill every running/pending jvm process? 
>   
It first shutdown all applications then exit all http-thread.
During shutdown of application, it first make it unreacheable via http,
then call destroy on all servelt. It give time for currently running
requests to finish . I don't know if there is a timeout on this (like a
request taking 20 minutes to finish could be stopped).
> In fact, is there any risk about missing financial
> transactions?
>   
If you are using "transaction" nothing will be done prior to commit and
everything will be done after comit. It's atomic (the principle of a
transaction) and not handle by java (its your database that is
implementing 2 steps commits).
> Thank you ;-)
>
>
>
>
>       
> ____________________________________________________________________________________
> ¡Sé un mejor fotógrafo!
> Perfecciona tu técnica y encuentra las mejores fotos.                       
> http://mx.yahoo.com/promos/mejorfotografo.html
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>   


-- 
http://www.noooxml.org/


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to