I 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.
<a
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826945#3826945">View
the original post</a>
<a
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826945>Reply
to the post</a>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user