H. Hall wrote:
Okay, thanks again. This got me off square one. Now on to square two. :-)
1. I compose a legal mbeans-descriptor.xml file configuring my MBean
according to DTD. I place it in the domain "Catalina". Don't know if
this is right. Also tried my own domain name.
2. I launch Tomcat with parameters sufficient to launch JMX, define a port
etc. This works.
3. I modify the simple Client.java from the Sun tutorial modifying the
url to talk to my port and the jmxrmi context.
This succeeds to the point of letting me iterate the list of available
domain names.
4, When I use the version of the descriptor with a custom Domain name,
this domain name does not even appear in the list and the Client app
fails with a ClassNotFoundException.
5. When I use the version of the descriptor that places my mbean in the
Catalina domain, my bean is not found within that Domain and the Client
app also fails - with a ClassNotFoundException.
Is there a preexisting domain within Tomcat to which I should attach my
mbean? If not, what must I do to get my mbean found.
Steve Cohen wrote:
I am trying to write a custom MBean to put a particular function of
our application under management control This application is
currently deployed under Tomcat 6.0.
I do not need remote monitoring/management. Local management will
do. I am perfectly happy to invoke my management function through a
shell script invoking a java jmx client to perform the action required.
I find the Tomcat documentation on this subject confusing and
sparse. The howto page here:
http://tomcat.apache.org/tomcat-6.0-doc/mbeans-descriptor-howto.html
simply shows a sample configuration file without explaining which
elements on it are required, which pertain to the specific example, etc.
Is there a standard syntax for these mbean descriptor files with a
true explanation of each field?
I believe it's based on the Apache Commons Modeler.
Here is a link to the DTD for the Model MBeans Configuration File:
http://jakarta.apache.org/commons/dtds/mbeans-descriptors.dtd
Here is a link for the java doc for package
org.apache.tomcat.util.modeler. Scroll down to description:
http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/tomcat/util/modeler/package-summary.html
cheers,
HH
Also, compared to the standard Sun JMX tutorial - which elements does
Tomcat provide - server, agent ?
Thanks.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]