[ http://issues.apache.org/jira/browse/MODELER-17?page=comments#action_12414679 ]
Bill Barker commented on MODELER-17: ------------------------------------ A patch for this has now been committed to the SVN, and will appear in V1.1.2. > [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]