Hi,
I've got JBoss 3.0.8. I'm stuck on finding out how to get an attribute in MBean if I specified it by node in jboss-service.xml.
I have a working example when JNDI name specified in jboss-service.xml:
inmemory/maps/MapTest
jboss:service=Naming
is received in corresponding MBean with setJndiName(String jndiName) method. How would I get just general string attribute?
Thanks!
Hmm, what do you mean by just a general string attribute? The mechanism is the same, you declare that your MBean has an attribute with a given name, and then in your service.xml specify that attribute name and give it some default value.
-- Juha