Sending reply message from mdb in AS 7.1
sv_srinivaas Jun 14, 2012 9:01 AMHi,
Using Jboss AS 7.1.0 and Hornetq 2.2.13 Final.
I have configured the jms cluster of 2 nodes having testQueue and responseQ. Also configured a MDB in remote machine and MDB is able to consume messages from the cluster of jms node. Having issues while sending the reply message from mdb. Getting below exception while trying to access the reply queue from mdb,
JBAS014775: New missing/unsatisfied dependencies: service jboss.naming.context.java.jboss.exported.jms.queue.responseQ (missing) dependents: [service jboss.naming.context.java.comp.mdb.mdb.MDBTextListener.env."com.jms.queue.async.mdb.MDBTextListener".replyQueue]
14:58:16,837 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.mdb.mdb.MDBTextListener.env.\"com.jms.queue.async.mdb.MDBTextListener\".replyQueuejboss.naming.context.java.jboss.exported.jms.queue.responseQMissing[jboss.naming.context.java.comp.mdb.mdb.MDBTextListener.env.\"com.jms.queue.async.mdb.MDBTextListener\".replyQueuejboss.naming.context.java.jboss.exported.jms.queue.responseQ]"]}}}
14:
This is the line where the exception occurs where the mdb tries to access the reply queue
<jms-destinations> <jms-queue name="responseQ">
<jms-queue name="testQueue">
<entry name="queue/test"/>
<entry name="java:jboss/exported/jms/queue/test"/>
</jms-queue>
<entry name="queue/responseQ"/>
<entry name="java:jboss/exported/jms/queue/responseQ"/>
</jms-queue>
</jms-destinations>
Basically i'd like ot know how to get access to responseQ from within MDB. Thanks!
Queue replyQueue;
I've attached the mdb code and the queue definition in jms node1 and jms node2 is as shown below
-
MDBTextListener.zip 1.3 KB