I've written an application that uses a number of singleton classes to for
things like database access, etc.  I've also put some application state in
these singletons.  (For example, if someone updates a particular table, I
set a time field indicating when the data was last updated and servlets can
use the time field to determine whether to refresh data.  This is just one
example)

Am I hosed if I go to a clustered environment?  It seems like each app server
will have its own instance of the singleton classes.

Is there a way to store application state short of writing it to a common
data store that is accessed by the singletons?

TIA,

Randy

___________________________________________________________________________
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