[jboss-user] [EJB 3.0] - Re: Help need to solve the jms not bound error

jaikiran do-not-reply at jboss.com
Fri Nov 7 11:21:46 EST 2008


@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#4187773

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



More information about the jboss-user mailing list