Sunday, December 9, 2012

How do I make sure my MBean is deployed after my EJB ?

If your MBean is dependant on another resource, supposing contained in an EAR file, you can specify in your jboss-service.xml not to deploy before this resource is available. Use the tag "depends" for this purpose

For example:


  
  
    jboss.j2ee:service=EARDeployment,url='application.ear'
  



The same dependancy can be applied also for other package like Jar....

<

  
  
    jboss.j2ee:service=JARDeployment,url='ejbsample.jar'
  

http://www.mastertheboss.com/jboss-deploy/how-do-i-make-sure-my-mbean-is-deployed-after-my-ejb

No comments:

Post a Comment