Re: Unable to deploy MBeans in Tomcat 7 using Modeler API

2014-08-07 Thread Yogesh Rao
Well... I managed to get all of it working, following is what needs to be done to get a custom MBean working HelloMBean.java - package org.example.mbeans; public interface HelloMBean { public void sayHello(); } Hello.java ---

Re: Unable to deploy MBeans in Tomcat 7 using Modeler API

2014-08-06 Thread Yogesh Rao
Hi, Did some further search on this and came across the API document for modeler where an excellent HowTo is given...The only code missing further to what i had written was to bind the MBean with the registry which is done using below fragment URL url= this.getClass().getResource

Unable to deploy MBeans in Tomcat 7 using Modeler API

2014-08-05 Thread Yogesh Rao
Hi, I am trying to write a MBean using the Modeler API in tomcat. The details of my environment are as below:- Tomcat version : 7.0.54 JDK version : 1.7 OS : windows 7 The MBean written using Modeler API is not getting deployed and hence not showing up on JConsole. Following is the simple

Re: Unable to deploy MBeans in Tomcat 7 using Modeler API

2014-08-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Yogesh, On 8/5/14, 10:18 AM, Yogesh Rao wrote: I am trying to write a MBean using the Modeler API in tomcat. The details of my environment are as below:- Tomcat version : 7.0.54 JDK version : 1.7 OS : windows 7 The MBean written using

Re: Unable to deploy MBeans in Tomcat 7 using Modeler API

2014-08-05 Thread Yogesh Rao
Hi chris, Thank you for the quick reply. I will certainly look at the link mentioned by you... Also let me know if you planning to upload the source code anytime soon. Meanwhile any tomcat developers on the mailing list can help me with this ??? I can slso volunteer in contributing to this part