[jboss-dev-forums] [Design of JBossCache] - Re: JBCACHE-1025: JBossCache mbean registration fails on Web

bstansberry@jboss.com do-not-reply at jboss.com
Wed Apr 18 12:52:28 EDT 2007


Re: the lifecycle, see http://www.jboss.com/index.html?module=bb&op=viewtopic&t=103608 for possibly relevant discussion.

You don't want to invoke preRegister().  That's the responsibility of the JMX server.

Re: maintaining a map of names, will this or something along these lines avoid that need?


  |       if (registerCache)
  |       {
  |          ObjectName tmpObj = new ObjectName(tmpName);
  |          if (!server.isRegistered(tmpObj))
  |             server.registerMBean(cache, tmpObj);
  | 
  |          // ADDED: Use whatever name the cache is registered under as the
  |          // base for the interceptor names
  |          tmpName = cache.getServiceName().getCanonicalName();
  |       }

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038531#4038531

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038531



More information about the jboss-dev-forums mailing list