>>> Nicholas Whitehead <[EMAIL PROTECTED]> 05-Jan-00 2:29:43 PM >>>

>Simple enough... but I cannot get it to work. It
>starts out fine, but eventually, it seems like my
>threads are getting different instances (of my
>SINGLETON !!!) because a periodic dump of the
>hashtable shows different values.

Where are you accessing the concurrency manager within the singleton?
Is it per request? If so, the static manager is unlikely to presist
causing the thing to fall over.

Secondly - why use a singleton?

Startup the threads in the init() method of your servlet, have each
thread lock on a table in the servlet. Simply sync access to the
table, you can't go wrong.

Still... might be helpfull to see the Singleton code. Your problem
has to be there (unless I missed something in your manager code).



Nic Ferrier

___________________________________________________________________________
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