On 04/30/09 10:17 AM, glassfish_at_javadesktop.org wrote:
> Hey,
>
> 2 quick technical questions on Gf2 clustering:
>
> (1) Is the ServletContext state shared across all members of the cluster (I would assume so, but i just want to be sure.)
>
No, it is not shared. For each deployed app there is going to be one
ServletContext
per cluster instance.
> (2) Does the servlet's init method get run for just one member of the cluster, and the the Servlet's state copied across? or does init get run on every member of the cluster?
>
The latter.
Jan
> If the latter, how do i avoid different inits clobbering each other initializing the servlet context?
> [Message sent by forum member 'jeffpk' (jeffpk)]
>
> http://forums.java.net/jive/thread.jspa?messageID=344532
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>