This content has been marked as final.
Show 2 replies
-
1. Re: binding MBean to JNDI name
robdale Oct 12, 2006 8:05 AM (in response to jyoonyang)This should help you get started:
http://wiki.jboss.org/wiki/Wiki.jsp?page=SERVICEdotXML -
2. Re: binding MBean to JNDI name
jyoonyang Nov 3, 2006 8:04 PM (in response to jyoonyang)Rob,
As a test, I copied and pasted following in TreeCache MBean config from the Wiki link you sent me.<mbean code="org.jboss.cache.TreeCache" name="test:service=MyCache"> ... <attribute name="BindingsConfig" serialDataType="jbxb"> <jndi:bindings xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xmlns:jndi="urn:jboss:jndi-binding-service:1.0" xs:schemaLocation="urn:jboss:jndi-binding-service:1.0 resource:jndi-binding-service_1_0.xsd" > <jndi:binding name="urls/jboss-home"> <jndi:value type="java.net.URL">http://www.jboss.org</jndi:value> </jndi:binding> </jndi:bindings> </attribute>
When I went to JMX console for the list of JNDI names, I didn't see "urls/jboss-home". Is this correct way of defining JNDI name?
Also, if I want to link my TreeCache to the JNDI name, what should I specify for jndi:value?
Thanks,
Jennifer