struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Hill <>
Subject ServletContext, Initialisation, & Distributed Environments
Date Tue, 14 Dec 2004 12:32:14 GMT
According to the sevlet spec: "context attributes are local to the JVM 
in which they were created. This prevents ServletContext attributes from 
being a shared memory store in a distributed container".

What Id like to know is how this affects configuration information I 
load in a PlugIn or in a servlets init method when the application 
starts up. If there are multiple JVMs, each will get its own instance of 
the same servlet (which presumably is marked as load on startup), so 
will init be called on each of them? or just for one machine?

Im guessing the former, as the latter seems dodgy, but Id like to hear 
it from someone who actually knows for sure.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message