It is not unique to the session. It is unique to the classloader which usually means that each web app will have its own singleton.

Usually, you'll just end up with one per server.

BAL

From: "Brian Kidney" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Singletons in Tomcat
Date: Thu, 5 Jun 2003 14:26:19 -0230


-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

If I have a class in my application which is a singleton, is there only one object per server (Tomcat in my case), or is it unique to the session (ie. each user gets a different instance)?

Brian

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPt92MuLP0vXx30WgEQKtFQCfX4gkSYSwqx9+Zij4IfQU9DxA6L4An2gY
hUqwLgvXo/4W5scinkxmIF7j
=Osto
-----END PGP SIGNATURE-----



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to