This content has been marked as final.
Show 2 replies
-
1. Re: Setting attributes for a DynamicMBean in deployment XML
nickman Sep 29, 2004 9:35 AM (in response to eric4211)Eric;
A couple of things:
1) The attribute tag should look like this:[attribute name="color"]red[/attribute]
2) Make sure that your public MBeanInfo getMBeanInfo() method is providing an array of MBeanAttributeInfo[] objects that contain color as an attribute.
3) Make sure that your setAttribute(Attribute attribute) method can set the color attribute.
That should do it.
//Nicholas -
2. Re: Setting attributes for a DynamicMBean in deployment XML
starksm64 Sep 29, 2004 1:32 PM (in response to eric4211)It makes no different how the mbean is implemented. The jboss-service.xml attribute setting simply gets translated into a setAttribute call through the mbean server. There is no value attribute on the attribute element so as Nicholas said the value needs to be passed as the text body of the attribute element.