[jboss-user] [Beginner's Corner] - Re: Singletons in a J2EE application server

Wolf-Dieter Fink do-not-reply at jboss.com
Sat Sep 24 08:08:00 EDT 2011

Wolf-Dieter Fink [http://community.jboss.org/people/wdfink] created the discussion

"Re: Singletons in a J2EE application server"

To view the discussion, visit: http://community.jboss.org/message/628362#628362

If you talk about the 'standard' Singleton-Pattern (not the @Singleton annotated one).
You might have different Singletons within the same JVM, because it depends to the classloader scope.
Example: you deploy a Singleton-Class in a JAR which is included in different EARs or WARs, in this case it depends to the classloader settings whether you have one or more instances.

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110924/6b570975/attachment-0001.html 

More information about the jboss-user mailing list