How to create a true singleton in java?

Posted by rjoshi on Stack Overflow See other posts from Stack Overflow or by rjoshi
Published on 2009-09-29T21:06:52Z Indexed on 2010/04/24 15:23 UTC
Read the original article Hit count: 276

Filed under:
|
|
|

I am facing a problem with my singleton when used across multiple class loaders. E.g Singleton accessed by multiple EJBs. Is there any way to create a singleton which has only one instance across all class loader?

I am looking for pure java solution either using custom class loader or some other way.

© Stack Overflow or respective owner

Related posts about singleton

Related posts about absolute