2 Replies Latest reply on Aug 2, 2011 12:19 PM by riteshj2ee

    JNDI look up failed with Dynamically created Queue using JMX calls

    riteshj2ee

      Hi All,

      I am using JBoss AS 6 with HornetQ 2.2.5 as JMS server and Integrated JMS & JMX with Spring. I can create new Queue dynamically by using JMX calls from Spring (eg. createQueue(queuename, jndiName))). But JNDI lookup is not working for it, I've other Physical queue for which JNDI lookup is working fine.

      code sample:

       

      serverObjectName = new ObjectName("org.hornetq:module=JMS,type=Server");
      
      mBeanServerConnection.invoke(serverObjectName,
                      "createQueue", new String[] { "myQueue",
                              "/queue/myQueue"}, new String[] {
                              "java.lang.String", "java.lang.String" });
      
      

       

      Do I need to configure anything explicitly for these? Any suggestion is appreciated.

      Thanks.

      Ritesh Ranpara