2 Replies Latest reply on Aug 30, 2012 11:56 AM by hgupta

    MDB not able to reconnect if HornetQ is restarted

    hgupta

      I am working on a configuration like this:

       

      1. Server A - JBoss 7.1.1.Final - Using as JMS server with one JMS topic configured in hornet subsystem.

      2. Server B - JBoss 7.1.1.Final - Using as MDB server connecting to JMS topic deployed on Server A

      3. Standalone Java client publishing messages to JMS topic on Server A

       

      I start Server A, Server B and Stand alone Java client. MDB on Server B get all the messages that stand alone client sends.

       

      Now, I stop Server A and stand alone Java client and restart both. Server B is running during this time.

       

      When Server A is up again, MDB on Server B is never able to connect to Server A and any message now sent from stand alone client to JMS topic in Server A is not received on Server B.

       

      Can someone please help in pointing out what I am doing wrong here?

        • 1. Re: MDB not able to reconnect if HornetQ is restarted
          jbertram

          Can you post your MDB's activation configuration properties?

          • 2. Re: MDB not able to reconnect if HornetQ is restarted
            hgupta

            This is my MDB configuration:

             

            @MessageDriven(name = "TestMDB", activationConfig = {

                      @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),

                      @ActivationConfigProperty(propertyName = "destination", propertyValue = "egain.pl.testing"),

                      @ActivationConfigProperty(propertyName = "setupAttempts", propertyValue = "-1"),

                      @ActivationConfigProperty(propertyName = "connectorClassName", propertyValue = "org.hornetq.core.remoting.impl.netty.NettyConnectorFactory"),

                      @ActivationConfigProperty(propertyName = "connectionParameters", propertyValue = "host=10.10.12.19;port=5445") })

            public class TestMDB implements MessageListener