3 Replies Latest reply on Apr 15, 2014 10:32 AM by Justin Bertram

    Migrating from JBoss 5 to JBoss 6

    Sankalp Madaan Newbie

      Hi All,

       

      I am migrating my application from JBoss 5 to JBoss 6 which involved JMS. In JBoss 5, I used hornetq-ra.rar as my resource adapter. I put the ip address of my destination topic and port in ra.xml.

      Now I am migrating to JBoss 6. But I am not able to find a way to have my Destination address in an external xml. I am using the below mentioned properties and it is working fine.

       

       

      @MessageDriven(activationConfig = {

       

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

        @ActivationConfigProperty(propertyName = "destination", propertyValue = "/topic/NORSTopic"),

        @ActivationConfigProperty(propertyName = "user", propertyValue = "username"),

        @ActivationConfigProperty(propertyName = "password", propertyValue = "password"),

        @ActivationConfigProperty(propertyName = "subscriptionDurability", propertyValue = "Durable"), 

        @ActivationConfigProperty(propertyName = "clientID", propertyValue = "Durable-Sub"),

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

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

        @ActivationConfigProperty(propertyName = "subscriptionName",propertyValue = "client1"),

       

        })

       

      Please let me know if there is a way where i can put my host and port in external XML.