This content has been marked as final.
Show 4 replies
-
1. Re: Seam singleton pattern?
swd847 Jun 17, 2009 1:52 AM (in response to gonorrhea)Application scoped components are basically singletons. The only times when this is not really true is in a multi-war environemnt or in a cluster.
-
2. Re: Seam singleton pattern?
jeanluc Jun 17, 2009 4:38 AM (in response to gonorrhea)the word 'singleton' without defining a scope is meaningless. A single instance per application? Per JVM? Per cluster?
-
3. Re: Seam singleton pattern?
gonorrhea Jun 17, 2009 4:34 PM (in response to gonorrhea)
Jean Luc wrote on Jun 17, 2009 04:38:
the word 'singleton' without defining a scope is meaningless. A single instance per application? Per JVM? Per cluster?For now anyways, per application-scope or session-scope...
-
4. Re: Seam singleton pattern?
jeanluc Jun 17, 2009 8:03 PM (in response to gonorrhea)Use a component with @AutoCreate @Scope(ScopeType.SESSION) @Startup or @AutoCreate @Scope(ScopeType.APPLICATION) @Startup