-
1. Re: Queue lookup failing (because it is not being created)
ataylor Apr 9, 2013 8:25 AM (in response to petal1)if you are getting "javax.naming.NameNotFoundException: MyQueue not bound" its because either the queue hasnt been deployed or you are using the wrong jndi name. Take a look at one of the HornetQ examples, there are plenty of them.
-
2. Re: Queue lookup failing (because it is not being created)
petal1 Apr 9, 2013 9:05 AM (in response to ataylor)As I said in my post, I can see the queue is not deployed. I included the location, name, and contents of the queue configuration file in my post - and they would appear to match the documentation as far as I can tell, so there should be no reason that the queue is not deployed.
-
3. Re: Queue lookup failing (because it is not being created)
jbertram Apr 9, 2013 9:10 AM (in response to petal1)Any errors in your log when you start the server?
-
4. Re: Queue lookup failing (because it is not being created)
petal1 Apr 9, 2013 9:49 AM (in response to jbertram)No errors in boot.log or server.log.
boot.log and server.log contain the following two lines repeated several times:
13:35:55,311 INFO [HornetQActivation] awaiting topic/queue creation queue/MyQueue
13:35:57,337 INFO [HornetQActivation] Attempting to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@1f06324 destination=queue/MyQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=null maxSession=15)
and I cannot see the queue using jboss admin-console.
-
5. Re: Queue lookup failing (because it is not being created)
jbertram Apr 9, 2013 9:56 AM (in response to petal1)Try renaming myqueues-hornetq-jms-service.xml to myqueues-hornetq-jms.xml.
-
6. Re: Queue lookup failing (because it is not being created)
petal1 Apr 9, 2013 11:14 AM (in response to jbertram)Thank you!
I had already renamed the files as you suggested but had reverted to the wrong names accidentally.