[jboss-user] [EJB 3.0] - Re: how to define a destination with MDB annotations only ?

longbeach do-not-reply at jboss.com
Wed Sep 24 01:39:58 EDT 2008


Thanks. I tried adding all these attributes, i get the error :
"javax.naming.NameNotFoundException: TestMdbTopic not bound"



  | @MessageDriven(mappedName = "topic/TestMdbTopic", 
  | activationConfig = {
  |  @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
  |  @ActivationConfigProperty(propertyName="subscriptionDurability", propertyValue="Durable"),
  |  @ActivationConfigProperty(propertyName="subscriptionName", propertyValue="topicmdb"),
  |  @ActivationConfigProperty(propertyName="clientId", propertyValue="mdbtopic-test"),
  |  @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
  |  @ActivationConfigProperty(propertyName = "destination", propertyValue = "topic/TestMdbTopic")  
  | })
  | 

Someone claims it works (in Spanish):
http://blog.neodoo.es/fsolans/entry/mdb_con_anotaciones_pojo_ejb3
It does not ( i kept only the attributes he used : mappedName, acknowledgeMode, destinationType, destination)


Does anyone else have a clue ? Thanks


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178451#4178451

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



More information about the jboss-user mailing list