3 Replies Latest reply on May 18, 2016 10:54 AM by Miroslav Novak

    Help with CLI JMS setup in WildFly 9.0.2

    Mike Meusey Newbie

      I am trying to setup JMS queues in a CLI file like this:

       

      /subsystem=messaging/hornetq-server=default/jms-queue=MyQueue:add(entries=["queue/MyQueue","java:jboss/exported/jms/queue/MyQueue"])

      /subsystem=messaging/hornetq-server=default/jms-queue=MyQueue:write-attribute(name=durable,value=false)

       

      which are referenced in a bean class as

       

      @Resource(mappedName = "java:/queue/MyQueue")

      private Queue myQueue;

       

      But I am getting an error like:

       

           [exec]     ....com.company.MyBean\".myQueueis missing [jboss.naming.context.java.queue.MyQueue]"