I am trying to setup a simple EJB3 MDB on jboss 5.1 reading from a queue on a standalone Hornetq 2.1.2. Both servers are running on localhost and I have setup the jca configuration as per the jca-remote example i.e. put the attached hornetq-ds.xml under /jboss/server/default/deploy and the attached ra.xml under /deploy/hornetq-ra.rar/META-INF but I can't seem to get the two components to connect properly.
Whenever I start the jboss server I get the following message:
10:56:46,005 INFO [HornetQActivation] Attempting to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@1914a16 destination=queue/spiderQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=processor password=**** maxSession=15)
10:56:46,015 INFO [HornetQActivation] awaiting topic/queue creation queue/spiderQueue
The attached MessagingTest class accesses the hornetq server by jndi and is used to send the messages, there is a section commented out at the bottom which I used to test recieving messages and this seemed to work ok i.e. the message that was sent was also recieved. But when trying this in combination with the attached MDB I always get the message above whether I run the messaging test before or after starting the jboss server.
I am assming that this is something simple that I have missed, but I have been over the example and the docs but can't seem to see where I'm going wrong!
Any help would be much appreciated.