> I put a servlet on each servers, and there is a static variable in this servlet. Do 
>all the instances on these servers share the same static variable?

I don't think so, because on every server there is a different VM
running and a static variable is shared only between class instances
in the same VM.
>
> If not, how can I share data among these instances?

You will have to exchange the data between the servers "by hand". You
can do this with the networking classes of java.

There are some products and frameworks for clustering several servers.
We here use SilverStream, but havn't used the clustering features yet.

-Henning

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to