[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Registering a bean as an aspect in the bootstrap

scott.stark@jboss.org do-not-reply at jboss.com
Thu Feb 1 19:56:17 EST 2007


There certainly are different dependencies. The jboss5 the AspectManager depends on the JMXKernel for the mbeanServer which in turn depends on the JBossServer, which is not in the bootstrap descriptor. Rather, its magically injected after the bootstrap, but before the validation by the jboss5 ServerImpl class, org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap method:


  | ...
  |       deploy(bootstrapURL);
  | 
  |       Kernel kernel = getKernel();
  |       controller = kernel.getController();
  | 
  |       // Register the Server instance in the kernel
  |       if (server != null)
  |       {
  |          AbstractBeanMetaData metaData = new AbstractBeanMetaData("JBossServer", server.getClass().getName());
  |          controller.install(metaData, server);
  |       }
  | 
  |       // Validate that everything is ok
  |       checkIncomplete();
  | 

So I guess this is causing issues. The JBossServer bean is the bean implementing the org.jboss.system.server.Server that is loaded to define the jboss server behavior.



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

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



More information about the jboss-dev-forums mailing list