commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Lundberg (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (MODELER-17) [modeler] MbeansSource don't use args at mbeans and operations
Date Mon, 05 Jun 2006 11:22:30 GMT
     [ http://issues.apache.org/jira/browse/MODELER-17?page=all ]
     
Dennis Lundberg resolved MODELER-17:
------------------------------------

    Resolution: Fixed

> [modeler] MbeansSource don't use args at mbeans and operations
> --------------------------------------------------------------
>
>          Key: MODELER-17
>          URL: http://issues.apache.org/jira/browse/MODELER-17
>      Project: Commons Modeler
>         Type: Improvement

>     Versions: 1.1.1
>  Environment: Operating System: All
> Platform: PC
>     Reporter: Peter Rossbach
>     Priority: Minor
>  Attachments: MbeansSource20040128.patch
>
> 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>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
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