Re: Need help with Tomcat MBean support - SOLVED

2008-09-08 Thread Steve Cohen
Finally figured out how to do what I wanted to do. Turns out I had no need at all of creating an MBean in my client. Duh! I never understood why I needed to do that but that is what the sample did. All I needed to do was call the MBeanServerConnection.invoke() method with a suitable object

Re: Need help with Tomcat MBean support

2008-09-08 Thread Steve Cohen
I sent this in over the weekend and didn't get a response so let me try this again a bit differently. The Sun JDK 5.0 JMX tutorial shows that it is possible and simple to create JMX client and JMX server in separate JVMs and have them talk to each other. The first article cited by Mr. Hall s

Re: Need help with Tomcat MBean support

2008-09-06 Thread Steve Cohen
Okay using approach of first article. The MBean server is correctly initialized and everything on the server side looks good. Now we come to the client side. The first article assumes you are just going to connect using a tool such as MC4J or JManage (monitoring tools). That is not my use c

Re: Need help with Tomcat MBean support

2008-09-05 Thread Steve Cohen
Thanks again. These articles are very clear and simple. They do raise a couple questions, though. In the first article, no mention is made of an mbeans-descriptor.xml file. It's all done programatically in the first article - which might be fine for my needs. The Tomcat documentation does

Re: Need help with Tomcat MBean support

2008-09-05 Thread H. Hall
Steve Cohen wrote: Let me ask my question a little more directly: Does the presence of a descriptor cause instantiation of an instance of an MBean or do I have to write code to create a server-side instance of my MBean and if so, where should this code reside or is there some configuration art

Re: Need help with Tomcat MBean support

2008-09-04 Thread Steve Cohen
Let me ask my question a little more directly: Does the presence of a descriptor cause instantiation of an instance of an MBean or do I have to write code to create a server-side instance of my MBean and if so, where should this code reside or is there some configuration artifact that causes th

Re: Need help with Tomcat MBean support

2008-09-04 Thread Steve Cohen
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

Re: Need help with Tomcat MBean support

2008-09-04 Thread Steve Cohen
Soon as I get out of this time crunch I will try to do so. Mark Thomas wrote: Steve Cohen wrote: Thank you very much - this is exactly what I was looking for. And a word to the Tomcat team - Documentation would be much improved by simply mentioning the two links provided by Mr. Hall.

Re: Need help with Tomcat MBean support

2008-09-04 Thread Mark Thomas
Steve Cohen wrote: > Thank you very much - this is exactly what I was looking for. > > And a word to the Tomcat team - > > Documentation would be much improved by simply mentioning the two links > provided by Mr. Hall. Patches are always welcome. Mark

Re: Need help with Tomcat MBean support

2008-09-04 Thread Steve Cohen
Thank you very much - this is exactly what I was looking for. And a word to the Tomcat team - Documentation would be much improved by simply mentioning the two links provided by Mr. Hall. H. Hall wrote: Steve Cohen wrote: I am trying to write a custom MBean to put a particular function of

Re: Need help with Tomcat MBean support

2008-09-04 Thread H. Hall
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 m

Need help with Tomcat MBean support

2008-09-04 Thread Steve Cohen
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 t