This content has been marked as final.
Show 3 replies
-
1. Re: MBeans as Startup Classes, and Singletons
adrian.brock Mar 1, 2003 3:44 AM (in response to bwmcadams)The singleton should be shared if your classes
are shared.
Try logging the following
singleton.getClass().getClassLoader();
Regards,
Adrian -
2. Re: MBeans as Startup Classes, and Singletons
jacqueso Apr 9, 2003 4:02 AM (in response to bwmcadams)Another option would be to bind the object from getInstance to a JNDI name an in your ejb look it up and use it. It works for me !
-
3. Re: MBeans as Startup Classes, and Singletons
bgw2 May 30, 2003 2:14 PM (in response to bwmcadams)How did you bind a singleton in JNDI such that it could
be found in another classloader ? I tried this, but found
that the class to be bound had to be serializable, and this
defeats the purpose of using a Singleton - you'd want to
get data by executing the same instance of object, not
reading a serialized snapshot of it.