-
1. Re: does jboss-messaging-1.0.0GA support ejb3?
mwelss Apr 3, 2006 5:01 AM (in response to mwelss)to be more precise: does it support ejb3 message driven beans?
-
2. Re: does jboss-messaging-1.0.0GA support ejb3?
ovidiu.feodorov Apr 3, 2006 11:38 PM (in response to mwelss)Yes.
I will follow up shortly with the detailed procedure of using Messaging with EJB3.
To speed up things, create a JIRA issue. -
4. Re: does jboss-messaging-1.0.0GA support ejb3?
mwelss Apr 18, 2006 5:30 AM (in response to mwelss)Ovidiu,
while waiting for jboss-messaging-1.0.1, could you post a ejb3 mdb example for jboss-messaging here?
Or should my "old" jboss-mq pojo mdb work right out of the box with jboss-messaging? What would be the recommended jbossas-version?
Thank you very much! -
5. Re: does jboss-messaging-1.0.0GA support ejb3?
ovidiu.feodorov Apr 18, 2006 7:28 PM (in response to mwelss)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)