wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Accessing an MBean in JCAPS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Accessing an MBean in JCAPS " Watch "Accessing an MBean in JCAPS " New topic
Author

Accessing an MBean in JCAPS

Ayan Dutta
Ranch Hand

Joined: Oct 16, 2005
Posts: 94
Hi can anybody tell me how access an mbean by a sample program .
For example in case of jboss , the jboss-service.xml contains an entry like the following...

*****************
<mbean code="org.jboss.jmx.adaptor.rmi.RMIAdaptorService"
name="jboss.jmx:type=Connector,name=RMI">

<!-- Bind the RMIAdaptor to JNDI name jmx/rmi/RMIAdaptor -->
<attribute name="JndiName">jmx/rmi/RMIAdaptor</attribute>
<!-- Use an anonymous listening port -->
<attribute name="RMIObjectPort">0</attribute>
<!-- Bind on every available interface -->
<attribute name="ServerAddress"></attribute>
</mbean>
*****************


From this I use the part ....
'<attribute name="JndiName">jmx/rmi/RMIAdaptor</attribute>'
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 Dutta
Ayan Dutta
Ranch Hand

Joined: Oct 16, 2005
Posts: 94
Any hint from anybody ?
Regards,
Ayan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing an MBean in JCAPS
 
Similar Threads
Problem starting JBOSS 4.2.3
JMX in JBoss
Problem integrating Jboss with IBM MQ using JCA resource adaptors
Start/stop applications using JBOSS API
Migration issues from JBOSS previous versions to JBOSS4.0.5