Re: [Q] Restart required?
From: Christophe Vanfleteren (c.v4nfl3t3r3n_at_pandora.be)
Date: 10/11/03
- Next message: ak: "Re: c to java"
- Previous message: Frank Lorenz: "Raising Download Dialog"
- In reply to: Silvain Piree: "Re: [Q] Restart required?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 11 Oct 2003 10:35:27 GMT
Silvain Piree wrote:
>> It is not required - Tomcat has a management application that
>> can be used to stop, start, remove and deploy web applications
>> without restarting the server.
>
> So, it's not the server that needs to be restarted, but the
> running web application that is restarted. I understand.
>
> But what if that application is handling a user session at that
> moment? Will that user session be aborted? For example,
> if the user requests a page, will that request be aborted?
> Or if the customer submits an order, will that process
> be aborted?
>
> In PHP I can replace a script that is part of the application
> without impacting on the running web application. Any
> subsequent user request will use the new script; any running
> user request keeps using the old script until it is finished.
>
> I would really like to switch to Java for server-side development
> but this is one of the major issues that is holding me back.
>
> Silvain
This should not be a problem in real life:
First of all, a running web application shouldn't have to be changed that
much. Development and testing should be done on another server.
Second, the user session will be saved even if you restart the webapp (at
least with tomcat it is), so your user will not lose session data. At most
some requests will get a 404, while the webapp reloads. But when you do
redeploy your webapp, it probably safer to give a "under maintenance"
message first (redeploy during the calmest hours).
-- Regards, Christophe Vanfleteren
- Next message: ak: "Re: c to java"
- Previous message: Frank Lorenz: "Raising Download Dialog"
- In reply to: Silvain Piree: "Re: [Q] Restart required?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|