public void start() throws ServiceException { wsRegistry = SystemInstance.get().getComponent(WsRegistry.class); if (wsRegistry == null && SystemInstance.get().getComponent(HttpListenerRegistry.class) != null) { wsRegistry = new OpenEJBHttpWsRegistry(); } if (portAddressRegistry == null) { portAddressRegistry = new PortAddressRegistryImpl(); SystemInstance.get().setComponent(PortAddressRegistry.class, portAddressRegistry); } containerSystem = (CoreContainerSystem) SystemInstance.get().getComponent(ContainerSystem.class); portAddressRegistry = SystemInstance.get().getComponent(PortAddressRegistry.class); assembler = SystemInstance.get().getComponent(Assembler.class); SystemInstance.get().setComponent(WsService.class, this); if (assembler != null) { assembler.addDeploymentListener(this); for (AppInfo appInfo : assembler.getDeployedApplications()) { afterApplicationCreated(appInfo); } } }
@Override public void start() throws ServiceException { wsRegistry = SystemInstance.get().getComponent(WsRegistry.class); if (wsRegistry == null && SystemInstance.get().getComponent(HttpListenerRegistry.class) != null) { wsRegistry = new OpenEJBHttpWsRegistry(); } if (portAddressRegistry == null) { portAddressRegistry = new PortAddressRegistryImpl(); SystemInstance.get().setComponent(PortAddressRegistry.class, portAddressRegistry); } containerSystem = (CoreContainerSystem) SystemInstance.get().getComponent(ContainerSystem.class); portAddressRegistry = SystemInstance.get().getComponent(PortAddressRegistry.class); assembler = SystemInstance.get().getComponent(Assembler.class); SystemInstance.get().setComponent(WsService.class, this); if (assembler != null) { SystemInstance.get().addObserver(this); for (final AppInfo appInfo : assembler.getDeployedApplications()) { final AppContext appContext = containerSystem.getAppContext(appInfo.appId); deploy(new AssemblerAfterApplicationCreated(appInfo, appContext, null)); } } }
@Override public void start() throws ServiceException { wsRegistry = SystemInstance.get().getComponent(WsRegistry.class); if (wsRegistry == null && SystemInstance.get().getComponent(HttpListenerRegistry.class) != null) { wsRegistry = new OpenEJBHttpWsRegistry(); } if (portAddressRegistry == null) { portAddressRegistry = new PortAddressRegistryImpl(); SystemInstance.get().setComponent(PortAddressRegistry.class, portAddressRegistry); } containerSystem = (CoreContainerSystem) SystemInstance.get().getComponent(ContainerSystem.class); portAddressRegistry = SystemInstance.get().getComponent(PortAddressRegistry.class); assembler = SystemInstance.get().getComponent(Assembler.class); SystemInstance.get().setComponent(WsService.class, this); if (assembler != null) { SystemInstance.get().addObserver(this); for (final AppInfo appInfo : assembler.getDeployedApplications()) { final AppContext appContext = containerSystem.getAppContext(appInfo.appId); deploy(new AssemblerAfterApplicationCreated(appInfo, appContext, null)); } } }