[jboss-user] [EJB 3.0] - Re: MDB redeploy with ...-service.xml

Wolfgang Knauf do-not-reply at jboss.com
Thu Jan 29 17:02:35 EST 2009


Hi Jaikiran,

many thanks for the suggestion with the @Depends annotation, the "NameNotFoundException" is gone now.

I modified my MDB:
@MessageDriven (activationConfig=
  |   {
  |     @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
  |     @ActivationConfigProperty(propertyName="destination", propertyValue="queue/MessageBeanQueue")
  |   })
  | @Depends(value = "knauf:service=Queue,name=MessageBeanQueue")
  | public class MessageBean implements MessageListener
  | {

On deploy, I see that it waits for my service:
22:49:55,640 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=Message.ear,jar=MessageEJB.jar,name=MessageBean,service=EJB3
  | 22:49:55,640 INFO  [JBossASKernel]   with dependencies:
  | 22:49:55,640 INFO  [JBossASKernel]   and demands:
  | 22:49:55,640 INFO  [JBossASKernel] 	jboss.ejb:service=EJBTimerService
  | 22:49:55,640 INFO  [JBossASKernel] 	knauf:service=Queue,name=MessageBeanQueue
  | 22:49:55,640 INFO  [JBossASKernel]   and supplies:
  | 22:49:55,656 INFO  [JBossASKernel] 	jndi:null
  | 22:49:55,656 INFO  [JBossASKernel] 	Class:javax.jms.MessageListener

Thanks to ALRubinger for adding detailed info output of deployed beans ;-).

Wolfgang


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

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



More information about the jboss-user mailing list