After reading some post regarding JBoss 7, clustering and singletons i have some questions.
current application scenario:
-EE6 application running on JBoss AS 7.1.1 FINAL
-some @Singleton annotated session beans that use timer service to trigger a method at specified interval.
Design & implementation works ok in single server environment. However in clustered environment there must be only one instance of singleton(s) running at specified time. Singletons also should be HA, so that if server running singletons crash, then another node takes responsibility.
What would be the preferred way to achieve this HA Singleton with JBoss 7.1.1 FINAL community edition?
is it the solution presented by David Robison: https://community.jboss.org/thread/177199
or maybe this example by Paul Ferraro?: https://community.jboss.org/thread/196934
What about JBoss EAP? Does it contain better support for HA singletons than current community final?
EE6's @Singleton annotation is a singleton per-JVM.
The preferred method is to use the SingletonService and wrap a MSC service. Use what best works for your use case. Both solutions are using SingletonService anyway.
For questions on EAP please consult the official support services https://access.redhat.com/support/