EJB 3.1 singleton in cluster
Asked Answered
B

2

6

I didn't find much information about EJB 3.1 Singletons in cluster enviroment. Is it true that specification says that those singletons will guarantee one instance per JVM - so one per cluster node. Not one per whole cluster?

Belindabelisarius answered 7/12, 2010 at 10:43 Comment(0)
V
7

Yes, section 4.8 of the EJB 3.1 specification states that "each application will have one bean instance of the Singleton for each JVM".

Victim answered 29/12, 2010 at 20:9 Comment(0)
K
1

The singleton itself does not guarantee one instance per cluster. For that you need to specify a dependency. If you are using jboss then it is "jboss.ha:service=HASingletonDeployer,type=Barrier".

Kibitka answered 30/11, 2012 at 17:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.