[jboss-user] [Messaging, JMS & JBossMQ] - Re: MDB's activated too early

josey do-not-reply at jboss.com
Thu Feb 22 16:36:59 EST 2007


You can make the MDB depend upon that which must be deployed before the MDB is deployed.  This can be set using the @Depends class-level annotation.

For example, if there are two session beans that must be deployed prior to the MDB then add the following annotation.


  | @Depends({
  | "jboss.j2ee:ear=myEar.ear,jar=myJarFile.jar,name=MySessionBean1,service=EJB3",  
  | "jboss.j2ee:ear=myEar.ear,jar=myJarFile.jar,name=MySessionBean2,service=EJB3" 
  | })
  | 

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

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



More information about the jboss-user mailing list