0
是否可以動態地添加和註冊新屬性的MBean如何動態地添加和註冊新屬性的MBean
如:
<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>
一個新的屬性中的jboss-service.xml的添加數量應動態地在MyMbean中註冊並在Mbean中進行任何代碼更改,可以這樣做嗎?
在此先感謝。