0 Replies Latest reply on May 12, 2017 8:38 AM by Wayne Wang

    Is there a way to configure singleton service for a specific Singleton EJB with @Singleton in a cluster of active-active configuration

    Wayne Wang Apprentice

      Hi,

       

      In Wildfly 10, it is possible to make the whole JEE application HA singleton (active-passive cluster configuration).

       

      In active-active cluster configuration, it is also possible to write a service implementing Singleton Service to manage individual singleton EJB annotated with @Singleton @Clustered so that each active cluster member will have one instance of the singleton EJB, but only one across the cluster will be active.

       

      I am wondering if there is a way to configure a singleton EJB so that only one will be active across a cluster, instead of write a service to manage this function.

       

      Thanks,

       

      Wayne

       

      Reference:

       

      https://docs.jboss.org/author/display/WFLY10/Singleton+MSC+services