9 Replies Latest reply: Feb 14, 2012 10:18 PM by jaikiran pai RSS

<mbean> optionally <depends> on another <mbean>

jaabax Newbie

hi

I have an mbean declared as the following in my jboss-service.xml:

 

<mbean code="com.mbean.MyBootstrap" name="service.server.monitor:service=MyBootstrap">
          <depends>service.server.monitor:service=OPTIONALMBean</depends>
</mbean>

 

 

but I want that OPTIONALMBean be optional

this means that: if OPTIONALMBean is not on the another SAR that I've placed it in, I want that MyBootstrap works normally

how can I achieve this?

 

thanks in advance