@MessageDriven(mappedName = "jms/NewMessage", activationConfig = {
| @ActivationConfigProperty(propertyName = "acknowledgeMode",
propertyValue = "Auto-acknowledge"),
| @ActivationConfigProperty(propertyName = "destinationType",
propertyValue = "javax.jms.Queue")
|
| })
|
You seem to be missing the destination property. Try this:
@MessageDriven(mappedName = "jms/NewMessage", activationConfig = {
| @ActivationConfigProperty(propertyName = "acknowledgeMode",
propertyValue = "Auto-acknowledge"),
| @ActivationConfigProperty(propertyName = "destinationType",
propertyValue = "javax.jms.Queue")
| @ActivationConfigProperty(propertyName="destination",
propertyValue="queue/NewMessage")
|
| })
|
Also, remember what Peter mentioned about the jndi-names of queues:
"PeterJ" wrote : In addition, you will want to change you queue reference to:
|
| @Resource(mappedName="queue/NewMessage")
| | private Queue queue;
| |
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187773#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...