JBoss Community

Re: Singletons in a J2EE application server

created by Wolf-Dieter Fink in Beginner's Corner - View the full discussion

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