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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user