commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26493] New: - MbeansSource don't use args at mbeans and operations
Date Wed, 28 Jan 2004 14:39:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26493>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26493

MbeansSource don't use args at mbeans and operations

           Summary: MbeansSource don't use args at mbeans and operations
           Product: Commons
           Version: 1.1.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Modeler
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: pr@webapp.de


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>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message