1 Reply Latest reply on Mar 5, 2013 8:45 AM by Radoslav Husar

    Clustered singletons

    jarno.juutinen Newbie

      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.

       

      Problem:

       

      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.

       

      Question 1:

       

      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

       

      Question 2:

       

      What about JBoss EAP? Does it contain better support for HA singletons than current community final?