MDB is not receiving messages
amlgroup Mar 22, 2004 2:45 PMI have purchased the JBoss docs and am able to deploy my MDB, and I am also able to create a Queue, look it up and send a JMS message to it -- however, the MDB is not receiving the message because the onMessage() method is never executing. Here are my code snippets, can anyone see a problem?
----------------------
from ejb-jar.xml:
<message-driven>
<ejb-name>SeriesTrigger</ejb-name>
<ejb-class>com.theamlgroup.crm.SeriesTriggerEJB</ejb-class>
<message-selector></message-selector>
<transaction-type>Container</transaction-type>
<acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
<resource-ref>
<res-ref-name>jms/QCF</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</message-driven>
<assembly-descriptor>
<container-transaction>
<ejb-name>SeriesTrigger</ejb-name>
<method-name>*</method-name>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
----------------------
from jboss.xml:
<enterprise-beans>
<message-driven>
<ejb-name>SeriesTrigger</ejb-name>
<configuration-name>Standard Message Driven Bean</configuration-name>
<destination-jndi-name>queue/seriesTrigger</destination-jndi-name>
<resource-ref>
<res-ref-name>jms/QCF</res-ref-name>
<jndi-name>ConnectionFactory</jndi-name>
</resource-ref>
</message-driven>
</enterprise-beans>
----------------------
from jbossmq-state.xml:
< StateManager>
< Queue>
< Name>seriesTrigger< /Name>
< /Queue>
< /StateManager>
--------------------------
from client code: (this is all "working")
// this first line performs the jndi lookup
QueueConnectionFactory queConn = serviceLocator.getQueueConnectionFactory("ConnectionFactory");
QueueConnection con = queConn.createQueueConnection();
con.start();
QueueSession sess = con.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
QueueSender sender = sess.createSender(queue);
ObjectMessage message = sess.createObjectMessage(event);
sender.send(message);
con.close();
-------------------------------
i can post my MDB code if needed but it is very simple and standard
please point out anything you see may be wrong or out of place! thanks in advance.