/** * @see org.jboss.ejb3.session.SessionSpecContainer#lockedStart() */ @Override protected void lockedStart() throws Exception { super.lockedStart(); // org.jboss.ejb3.remoting.IsLocalInterceptor requires the container to be registered with Ejb3Registry Ejb3Registry.register(this); // pass on the control to our simple singleton container this.delegate.start(); }
Ejb3Registry.register(con);
protected void deployElement(Ejb3HandlerFactory factory, ClassFile cf, InitialContext ctx) throws Exception { Ejb3Handler handler = factory.createHandler(cf); handler.setCtxProperties(unit.getJndiProperties()); if (handler.isEjb() || handler.isJBossBeanType()) { List<Container> containers = handler.getContainers(cf, this); for (Container con : containers) { // EJBContainer has finished with all metadata initialization from XML files and such. // this is really a hook to do some processing after XML has been set up and before // and processing of dependencies and such. try { ((EJBContainer) con).instantiated(); this.ejbContainers.put(con.getObjectName(), con); Ejb3Registry.register(con); } catch (Throwable t) { throw new DeploymentException( "Error creating ejb container " + con.getEjbName() + ": " + t.getMessage(), t); } } } }