public boolean start(ApplicationContext startupContext) throws Exception { cl = startupContext.getClassLoader(); try { app = deploymentCtx.getModuleMetaData(Application.class); Iterator<EjbEndpoint> iter = ejbendpoints.iterator(); EjbEndpoint ejbendpoint = null; while(iter.hasNext()) { ejbendpoint = iter.next(); String contextRoot = ejbendpoint.contextRoot; dispatcher.registerEndpoint(contextRoot, (com.sun.grizzly.tcp.Adapter)adapter, this); logger.info(format(rb.getString("enterprise.deployment.ejbendpoint.registration"), app.getAppName(), new WsUtil().getWebServerInfoForDAS().getWebServerRootURL(ejbendpoint.isSecure).toString() + contextRoot) ); } } catch (EndpointRegistrationException e) { logger.log(Level.SEVERE, format(rb.getString("error.registering.endpoint"),e.toString())); } return true; }
wmInfo.setAppClassLoader(appContext.getClassLoader()); if (appContext instanceof DeploymentContext) { DeploymentContext deployContext = (DeploymentContext)appContext;