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

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

    jaabax Newbie

      hi

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

       

      {code:xml}

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

                <depends>service.server.monitor:service=OPTIONALMBean</depends>

      </mbean>

      {code}

       

      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