0 Replies Latest reply on Feb 20, 2015 1:08 PM by shaileshtrivedi18

    Message driven beans as "singleton" on Jboss EAP 6.2 in clustered environment

    shaileshtrivedi18

      Hi,

       

      I have an enterprise application which has Singleton EJB's and Message Driven Beans. To ensure the application runs only on one node in a clustered environment, I am using JBoss SingletonService (ha-singleton) service which in turn installs org.jboss.msc.service.Service<String>.

       

      The problem I have is with behaviour of Message driven beans in clustered environment. If I deploy the application on two nodes, then MDB's start listening to respective queues on both the nodes, whereas I would want the MDB'S to be active on only one node which is selected as the master node and once master node goes down then it should get active on other node which will be selected as subsequent master node.

       

      Can you please suggest me any way to solve this ? I did good enough search, but could not find a way to link JBoss SingletonService with the MDB's deployment.