tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Servlet Redeployment in Production
Date Wed, 12 Sep 2007 15:41:48 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lb,

lightbulb432 wrote:
> What does Tomcat do when, in production, a new version of a WAR file that's
> currently being accessed is deployed? I've heard generally that you don't
> enable the auto-deployment feature in production, but assume you're aiming
> for a five-nines environment and the requirement is hot redeployment of the
> application.

I would argue that autodeploy doesn't help much in this case, but we'll
stick with that assumption for this discussion.

> So here's the scenario: users are accessing a given context continually. An
> administrator literally drops into the webapps folder a new WAR file with
> the same name as the context above. What happens from a technical
> perspective, in terms of synchronization, consistency of existing sessions
> that were on the old webapp, and much more?

Reading the code would provide a much better explanation that one of us
essentially regurgitating the code as pseudocode.

> Before spoiling the surprise for me, can anyone point me to the relevant
> classes/methods in the Tomcat source code to take a look at? (Then when I
> can't figure it out, I'll come back and ask you to spoil the surprise :) I'd
> like to get better at looking through a code base and figuring these things
> out, so hopefully someone can guide me in this.

I'd start with org.apache.catalina.StandardContext (and, specifically,
the "reload" method), since that's the thing being reloaded.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG6Ai89CaO5/Lv0PARAmUXAJ0ZH4w0pCfbK4WYjS4u8WGmzdiNCACfXIKt
xH8cv24QlAvSfAyP7TXhxtY=
=Dtc3
-----END PGP SIGNATURE-----

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


Mime
View raw message