You will be making entries for the MDB in ejb-jar.xml and jboss.xml In your ejb-jar.xml you will have something like the following:
<!-- Message Driven Beans --> | <message-driven > | <description><![CDATA[<!-- begin-xdoclet-definition -->]]></description> | | <ejb-name>MyMDBean</ejb-name> | | <ejb-class>com.abc.MyMDBean</ejb-class> | | <transaction-type>Bean</transaction-type> | | <message-driven-destination> | <destination-type>javax.jms.Queue</destination-type> | </message-driven-destination> | | | </message-driven> In jboss.xml: <message-driven> | <ejb-name>MyMDBean</ejb-name> | <destination-jndi-name>queue/YourQueueName</destination-jndi-name> | </message-driven> You have thus configured MyMDBean to listen to queue/YourQueueName queue. Thus whenever a message arrives on the queue/YourQueueName queue, the onMessage method of com.abc.MyMDBean gets called View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3895754#3895754 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3895754 ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
