Posted By:
Ayan_Dutta
Posted On:
Monday, December 4, 2006 01:21 PM
Hi ,can anybody tell me how access an mbean by a sample program in case of JCAPS ? For example in case of jboss , the jboss-service.xml contains an entry like the following... ***************** name="jboss.jmx:type=Connector,name=RMI"> jmx/rmi/RMIAdaptor 0 ***************** From this I use the part .... ' jmx/rmi/RMIAdaptor ' i.e. my JNDI Name is jmx/rmi/RMIAdaptor So in my code it is like .. MBeanServerConnection server = (MBeanServerConnection) ctx.lookup("jmx/rmi/RMIAdaptor"); Now in case of JCAPS from whe
More>>
Hi ,can anybody tell me how access an mbean by a sample program in case of JCAPS ?
For example in case of jboss , the jboss-service.xml contains an entry like the following...
*****************
name="jboss.jmx:type=Connector,name=RMI">
jmx/rmi/RMIAdaptor
0
*****************
From this I use the part ....
'
jmx/rmi/RMIAdaptor
'
i.e. my JNDI Name is jmx/rmi/RMIAdaptor
So in my code it is like ..
MBeanServerConnection server = (MBeanServerConnection) ctx.lookup("jmx/rmi/RMIAdaptor");
Now in case of JCAPS from where I can get the JNDI lookup string name ? If some one has any sample code or doc it will be very helpful for me .
Regards,
Ayan
<<Less