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

    JNDI look up failed with Dynamically created Queue using JMX calls

    Ritesh Ranpara Newbie

      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");
                      "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.


      Ritesh Ranpara