You need to have the JkCoyote connector running (even if you are using
Tomcat stand-alone), and in your $CATALINA_HOME/conf/jk2.properties file
add:
mx.port=9000
Of course, change '9000' to whatever port you want the JMX consol to listen
to.
Note: There is a bug in Tomcat that is doesn't
I am trying to get the reference of Tomcat MBeanServer
I am using the folowing code :
---
RemoteMBeanServer server;
IIOPConnector con = new IIOPConnector();
String protocol = http;
String host = 192.168.0.15;
int port = 7080;
String path = ;
Have a look a the source code for the Admin Webapp for tomcat. It uses
JMX.
s p wrote:
I am using JMX technology to get information of Tomcat
server. I am unable to get the reference of the
MBeanServer in Tomcat. Has any one worked on this
before. I am able get the information for other
For (now somewhat outdated) security reasons, Tomcat ships the jmx jar in
server/lib so that it is only accessable to Tomcat internals (and trusted
webapps like 'admin'). It should be enough to move the jar to common/lib to
get access to the JMX server. You may also have to move the
I've done this just recently in fact! I was looking for a means of
monitoring objects within our Tomcat and dicovered JMX. To get to Tomcats
Mbean Server you use the following (I've got it in a GeneralJMX class in a
static method for easy of reuse):
public class GeneralJMX {
/** Creates a
Hi Purvis,
Thanks for the reply.
This code will give me the MBeanServers on the same
JVM
But in our case we want to get the MBeanServer of a
remote Tomcat. The Tomat server may be running on any
other machine. I would have the port number and the
address of the machine where the Tomcat is
I forgot to mention - you must also copy the mx4j-jmx.jar from server/lib to
common/lib so your web apps can use the Tomcat JMX classes.
Rob
-Original Message-
From: s p [mailto:[EMAIL PROTECTED]
Sent: 27 August 2003 03:59
To: [EMAIL PROTECTED]
Subject: How to get reference of
I want to monitor Tomcat server using JMX from another
machine. I am not accessing the MBeanServer from an
webapplication deployed on the Tomcat. So I need have
mx4-jmx.jar in common/lib.
Santosh
--- Purvis Robert [EMAIL PROTECTED] wrote:
I forgot to mention - you must also copy the