Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Tomcat Restarting

David Delbecq

2007-08-10

Replies:

En l'instant pr?cis du 10/08/07 15:45, gerocoma-forophp@(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@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>  


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


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.