I added to the repository a full EJB3 MDB example. It will be bundled with with 
1.0.1.

Until then, to get the simplest EJB3 MDB running, do this:

1. Make sure that your JBoss instance has both EJB3 support 
(http://docs.jboss.org/ejb3/ and Messaging installed.
2. Compile and create an mdb-example.ejb3 out of:


  | @MessageDriven(activateConfig =
  | {
  |       @ActivationConfigProperty(propertyName="destinationType", 
propertyValue="javax.jms.Queue"),
  |       @ActivationConfigProperty(propertyName="destination", 
propertyValue="queue/testQueue")
  | })
  | public class EJB3MDBExample implements MessageListener
  | {
  |    public void onMessage(Message m)
  |    {
  |       System.out.println("My message: " + m);
  |    }
  | }
  | 

3. Deploy mdb-example.ejb3 under your $JBOSS_HOME/server/your-conf/deploy

If you check out the messaging CVS head, you have there a fully working 
example, including build scripts and README (docs/example/ejb3mdb)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938033#3938033

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938033


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to