[jboss-user] [EJB 3.0] - Re: Fail to deploy mdb
Dens
do-not-reply at jboss.com
Thu Oct 12 04:45:15 EDT 2006
Code (can't be esaier):
|
|
| @MessageDriven(activationConfig = {
| @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
| @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/A") })
| public class MailSender implements MessageListener {
|
| public void onMessage(Message m) {
| try {
| TextMessage tm = (TextMessage) m;
| System.out.println(tm.getText());
| } catch (JMSException e) {
| e.printStackTrace();
| }
|
| }
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977801#3977801
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977801
More information about the jboss-user
mailing list