Hi,
I use Tomcat 5.5 and I created a JNDIRealm in the server.xml file. I d'like to accede to the JNDIMean mbean but I can't find informations about source code exemple. I saw this page that contains all Tomcat Mbean http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/funcspecs/mbean-names.html Is there a mbean-descriptor.xml to add to my application ? I do think because I think that Tomcat Mbean are loaded automatically. Here is an exemple of my tentative to access to the Tomcat JNDIRealm mbean and to access to the connectionUrl of my realm. This code is not working :-( try { ObjectName timer = new ObjectName("Catalina:type=org.apache.catalina.realm.JNDIRealm,name=JNDIRealm"); List list = MBeanServerFactory.findMBeanServer(null); MBeanServer server = (MBeanServer) list.iterator().next(); String connectionUrl; connectionUrl=(String)server.invoke(timer,"connectionURL",new Object[] { },new String[] { "".getClass().getName()}); } catch(Exception e){ } Do you have an code exemple or a solution ? Thanks for your answers, Jabouille Jean Charles
