JBoss: ver 4.0.3 SP1 (it's the same with 4.04) installing "all" packets
JVM: 1.5.0_05
IDE: Netbeans 5 beta
I need to get access to the TreeCache from a servlet. So i used a EJB that find the TreeCacheMBeans and manage it. And a Servlet that lookup and use the EJB
When i look for the MBeanServer from inside the EJB with the code:
server = MBeanServerLocator.locatejboss();
List servers=MBeanServerFactory.findMBeanServer(null); if(servers == null || servers.size() == 0) throw new Exception("TreeCacheView.init(): no MBeanServers found"); server=(MBeanServer)servers.get(0);