1 2 Previous Next 16 Replies Latest reply on Mar 15, 2010 5:39 AM by sv_srinivaas Go to original post
      • 15. Re: Tomcat client,mdb failover issue
        timfox

        sv_srinivaas wrote:

         

        Hi, I understand from the above posts that MDB cannot failover from one live node to another live node automatically, but is it possible through code to handle this so that the MDB can failover from one queue live node to another?

         

        Say in my case I have a cluster of two queue nodes A and B. I've my MDB in node c and by default it picks messages from node A only.

         

        When nodeA goes down, my MDB goes idle and yes i do understand that Hornetq2.0.0. GA does not support MDB auto failover from one live to another live node, but is there a way that i can handle it in my code so that after 5 attempts it should connect to nodeC and pick messages from there?

         

        Pls help. Thanks!

        Sure, you can always handle failover manually.

         

        Look at the manual failover example in the distro for more information.

        • 16. Re: Tomcat client,mdb failover issue
          sv_srinivaas

          Tim,

           

          I checked the "Application-Level Failover" example / user manual where they have mentioned about using Exception Listeners which I understand is only for clients running outside the Application server. For MDB i'm not able to set the exception listener and i get an exception saying this is not possible inside the application server. Is there an alternate way of doing it?

           

          Also I've one more question related to this, since i'm not able to set the exception listener for MDB, I'd like to know if it is possible for an MDB to pick messages from the same queue in 2 different nodes that are in cluster at the same time?

           

          I.e Can a MDB from nodeC pick messages from requestQ of both nodeA and nodeB (both in cluster) at the same time?

           

          Thanks!

          1 2 Previous Next