This content has been marked as final.
Show 4 replies
-
1. Re: Hibernate and JBossCache Mbean service in Weblogic 8.1
belaban Mar 31, 2005 1:53 AM (in response to vipul.sagare)Have a look at http://www.jboss.org/wiki/Wiki.jsp?page=JBossCacheAndWebLogic
first -
2. Re: Hibernate and JBossCache Mbean service in Weblogic 8.1
kbaum Apr 27, 2006 3:46 PM (in response to vipul.sagare)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?
Thx.
-karl -
3. Re: Hibernate and JBossCache Mbean service in Weblogic 8.1
manik Apr 28, 2006 9:16 AM (in response to vipul.sagare)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.
-
4. Re: Hibernate and JBossCache Mbean service in Weblogic 8.1
ajoe May 3, 2006 11:40 AM (in response to vipul.sagare)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
http://www.jmanage.org/