[jboss-dev-forums] [Design of POJO Server] - Re: bean/mbean integration issue

adrian@jboss.org do-not-reply at jboss.com
Fri Jan 12 08:17:03 EST 2007


"alesj" wrote : 
  | What's the 'hack'?
  | 

If the controller doesn't find the context, it asks the registry if it knows the name.

Overridden method in the kernel controller:

  |    public ControllerContext getContext(Object name, ControllerState state)
  |    {
  |       ControllerContext context = super.getContext(name, state);
  |       if (context != null)
  |          return context;
  |       if (state == null || state == ControllerState.INSTALLED)
  |       {
  |          KernelRegistry registry = kernel.getRegistry();
  |          try
  |          {
  |             return registry.getEntry(name);
  |          }
  |          catch (Throwable ignored)
  |          {
  |          }
  |       }
  |       return null;
  |    }
  | 

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

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



More information about the jboss-dev-forums mailing list