I had a look at that example but it seems to be just deploying JbossCache in JNDI. Are there any examples of deploying JbossCache as an MBean in weblogic 8.1? Is it possible?
I haven't tried deploying this as an MBean in WebLogic, although I can't imagine this would be a difficult thing. BEA's e-docs has examples on deploying MBeans in WebLogic.
Maybe this helps...
TreeCache _cache = new TreeCache(); // .... initialise the TreeCache. Context ctx = new InitialContext(); MBeanServer server = null; // Retrieve a reference to the MBeanServer server = (MBeanServer) ctx.lookup(" weblogic.management.server"); // alternative Bea Weblogic Calls. // MBeanHome localHome = (MBeanHome) Helper.getAdminMBeanHome("username", "password", "url"); //e.g.url="t3://localhost:7001" // server = localHome.getMBeanServer(); ObjectName name = new ObjectName("mydomain:Name=org.jboss.cache,Type=TreeCache,Location=myserver"); server.registerMBean(_cache, name);
Than you can view the MBean with