0 Replies Latest reply on Feb 12, 2013 1:39 AM by buntylava

    How to dynamically add and register new attributes to mbean

    buntylava

      hi,

       

      Is it possible to dynamically add and register new attributes to mbean

       

      eg :

       

      <server>

        <mbean code="org.jboss.example.MyMbean" name="jboss:service=myMbean,name=MyMbeanExample">

          <attribute name="attribute1">value1</attribute>

        <attribute name="attribute2">value2</attribute>

        <attribute name="attribute3">value3</attribute>

        <attribute name="attribute4">value5</attribute>

        <attribute name="attribute5">value5</attribute>

        ...

        ...

        ...

        </mbean>

       

      </server>

       

      A new attribute added in jboss-service.xml should be registered in MyMbean dynamically, can this be done?

       

      Thanks in Advance.