Tuesday, June 22, 2010

making a jmx depend on an ear

this morning I discovered that my JBoss application server sometimes deploys my jmx beans before a depending ear. The fix is like always easy just define in your jboss-service.xml




<server>
<mbean
code="edu.ucdavis.genomics.metabolomics.binbase.bci.server.jmx.LifeTimeEvictionPolicyConfigJMX"
name="binbase.cache:service=LifeTimeEvictionPolicy">
<depends>jboss.j2ee:ear=clusterservice.ear</depends>

</mbean>


No comments:

Post a Comment