users@glassfish.java.net

Glassfish2.1 clustering, servlet context, and servlet init

From: <glassfish_at_javadesktop.org>
Date: Thu, 30 Apr 2009 10:17:44 PDT

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.)

(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?

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