Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1
-
None
-
Operating System: All
Platform: PC
-
26493
Description
I missing the feature to set args at construct a mbean or calling a jmx-
operation. A look inside MbeansSource and see that args parsed but not used.
Ohh. OK, now a I have add this feature and add tag jmx-atttriute to set
without construting a bean values to mbeans attributes.
Peter
s. added patch with Testcase and examples.
PS: To strange things:
a) all operation must have unique names, You can't have init() and init
(String,String) as mbean operations.
b) boolean is<Attribute> get-methode not found. currently only get<attribute>
supported.
c) missing mbean-instance.dtd
Example script:
<bean>
<mbean name="Bean:type=Bean"
code="org.apache.commons.modeler.modules.MyBean">
<attribute name="name" value="Peter"/>
</mbean>
<jmx-attribute objectName="Bean:type=Bean"
name="street"
value="Am Jo"/>
<jmx-operation objectName="Bean:type=Bean"
operation="start"/>
<mbean name="Bean:type=Bean2"
code="org.apache.commons.modeler.modules.MyBean">
</mbean>
<jmx-operation objectName="Bean:type=Bean2"
operation="setall">
<arg type="java.lang.String" value="Peter"/>
<arg type="java.lang.String">Am Jo</arg>
</jmx-operation>
<mbean name="Bean:type=Bean3"
code="org.apache.commons.modeler.modules.MyBean">
<arg type="java.lang.String" value="Peter"/>
<arg type="java.lang.String">Am Jo</arg>
</mbean>
</bean>