2 Replies Latest reply on Jul 20, 2010 7:56 AM by adamw

    Redelivering message to a different node

    adamw

      Hello,

       

      I'm using messaging 1.4.3.GA in AS 5.1, in a two-node cluster. Is it possible to configure JBM so that if a message delivery fails (MDB throws an exception), the message is redelivered at the second node? Currently the message is delivered 5 times to the same node.

       

      Maybe something with ClusterPullConnectionFactory? I noticed by default that is has load-balancing and failover properties set to false.

       

      Adam

        • 1. Re: Redelivering message to a different node
          gaohoward

          ClusterPullConnectionFactory is used internally to create connections between nodes within a cluster. Messages are sucked to other nodes only if there is no local receivers (like your MDB) while receivers on other nodes are available.

           

          So as long as your MDB is not dead, the messages won't be sent to other nodes.

          • 2. Re: Redelivering message to a different node
            adamw

            But messages are also load-balanced, not? So if there are a couple of messages waiting they will be serviced on different nodes.

            What I'm looking for is kind of load-balancing for failed messages ...

             

            Adam