public AppInfo configureApplication(AppModule appModule) throws OpenEJBException { logger.info("config.configApp", appModule.getJarLocation()); deployer.deploy(appModule); AppInfoBuilder appInfoBuilder = new AppInfoBuilder(this); return appInfoBuilder.build(appModule); }
void configureWebserviceSecurity(final EjbJarInfo ejbJarInfo, final EjbModule ejbModule) { final Object altDD = ejbModule.getOpenejbJar(); final List<PortInfo> infoList = ejbJarInfo.portInfos; this.configureWebserviceScurity(infoList, altDD); }
this.buildPojoConfiguration(appModule, appInfo); this.buildAppResources(appModule, appInfo); this.buildAppServices(appModule, appInfo); this.buildConnectorModules(appModule, appInfo); this.buildPersistenceModules(appModule, appInfo); if (bean instanceof MessageDrivenBeanInfo && !containerIds.contains(d.getContainerId()) && !skipMdb(bean)) { final MessageDrivenBeanInfo mdb = (MessageDrivenBeanInfo) bean; final String newContainerId = d.getContainerId() + "-" + mdb.mdbInterface; if (!containerIds.contains(d.getContainerId()) && !skipMdb(bean)) { final String msg = messages.format("config.noContainerFound", d.getContainerId(), d.getEjbName()); logger.fatal(msg); ejbJarInfo.portInfos.addAll(this.configureWebservices(ejbModule.getWebservices())); ejbJarInfo.uniqueId = ejbModule.getUniqueId(); ejbJarInfo.webapp = ejbModule.isWebapp(); this.configureWebserviceSecurity(ejbJarInfo, ejbModule); this.buildClientModules(appModule, appInfo, jndiEncInfoBuilder); this.buildWebModules(appModule, jndiEncInfoBuilder, appInfo);
buildConnectorModules(appModule, appInfo); buildPersistenceModules(appModule, appInfo); if (!containerIds.contains(d.getContainerId()) && !skipMdb(bean)) { String msg = messages.format("config.noContainerFound", d.getContainerId(), d.getEjbName()); logger.fatal(msg); ejbJarInfo.portInfos.addAll(configureWebservices(ejbModule.getWebservices())); configureWebserviceSecurity(ejbJarInfo, ejbModule); buildClientModules(appModule, appInfo, jndiEncInfoBuilder); buildWebModules(appModule, jndiEncInfoBuilder, appInfo);
private void buildWebModules(AppModule appModule, JndiEncInfoBuilder jndiEncInfoBuilder, AppInfo appInfo) throws OpenEJBException { for (WebModule webModule : appModule.getWebModules()) { WebApp webApp = webModule.getWebApp(); WebAppInfo webAppInfo = new WebAppInfo(); webAppInfo.description = webApp.getDescription(); webAppInfo.displayName = webApp.getDisplayName(); webAppInfo.codebase = webModule.getJarLocation(); webAppInfo.moduleId = webModule.getModuleId(); webAppInfo.watchedResources.addAll(webModule.getWatchedResources()); webAppInfo.host = webModule.getHost(); webAppInfo.contextRoot = webModule.getContextRoot(); webAppInfo.jndiEnc = jndiEncInfoBuilder.build(webApp, webModule.getJarLocation(), webAppInfo.moduleId); webAppInfo.portInfos.addAll(configureWebservices(webModule.getWebservices())); configureWebserviceSecurity(webAppInfo, webModule); for (Servlet servlet : webModule.getWebApp().getServlet()) { ServletInfo servletInfo = new ServletInfo(); servletInfo.servletName = servlet.getServletName(); servletInfo.servletClass = servlet.getServletClass(); webAppInfo.servlets.add(servletInfo); } appInfo.webApps.add(webAppInfo); } }
private void buildClientModules(AppModule appModule, AppInfo appInfo, JndiEncInfoBuilder jndiEncInfoBuilder) throws OpenEJBException { for (ClientModule clientModule : appModule.getClientModules()) { ApplicationClient applicationClient = clientModule.getApplicationClient(); ClientInfo clientInfo = new ClientInfo(); clientInfo.description = applicationClient.getDescription(); clientInfo.displayName = applicationClient.getDisplayName(); clientInfo.codebase = clientModule.getJarLocation(); clientInfo.mainClass = clientModule.getMainClass(); clientInfo.localClients.addAll(clientModule.getLocalClients()); clientInfo.remoteClients.addAll(clientModule.getRemoteClients()); clientInfo.callbackHandler = applicationClient.getCallbackHandler(); clientInfo.moduleId = getClientModuleId(clientModule); clientInfo.watchedResources.addAll(clientModule.getWatchedResources()); clientInfo.jndiEnc = jndiEncInfoBuilder.build(applicationClient, clientModule.getJarLocation(), clientInfo.moduleId); appInfo.clients.add(clientInfo); } }
webAppInfo.portInfos.addAll(this.configureWebservices(webModule.getWebservices()));
this.buildPojoConfiguration(appModule, appInfo); this.buildAppResources(appModule, appInfo); this.buildAppContainers(appModule, appInfo); this.buildAppServices(appModule, appInfo); this.buildConnectorModules(appModule, appInfo); this.buildPersistenceModules(appModule, appInfo); if (bean instanceof MessageDrivenBeanInfo && !containerIds.contains(d.getContainerId()) && !skipMdb(bean)) { final MessageDrivenBeanInfo mdb = (MessageDrivenBeanInfo) bean; final String newContainerId = d.getContainerId() + "-" + mdb.mdbInterface; if (!containerIds.contains(d.getContainerId()) && !skipMdb(bean)) { final String msg = new Messages("org.apache.openejb.util.resources").format("config.noContainerFound", d.getContainerId(), d.getEjbName()); logger.fatal(msg); ejbJarInfo.portInfos.addAll(this.configureWebservices(ejbModule.getWebservices())); ejbJarInfo.uniqueId = ejbModule.getUniqueId(); ejbJarInfo.webapp = ejbModule.isWebapp(); this.configureWebserviceSecurity(ejbJarInfo, ejbModule); this.buildClientModules(appModule, appInfo, jndiEncInfoBuilder); this.buildWebModules(appModule, jndiEncInfoBuilder, appInfo);
private void buildClientModules(final AppModule appModule, final AppInfo appInfo, final JndiEncInfoBuilder jndiEncInfoBuilder) throws OpenEJBException { for (final ClientModule clientModule : appModule.getClientModules()) { final ApplicationClient applicationClient = clientModule.getApplicationClient(); final ClientInfo clientInfo = new ClientInfo(); clientInfo.description = applicationClient.getDescription(); clientInfo.displayName = applicationClient.getDisplayName(); clientInfo.path = clientModule.getJarLocation(); clientInfo.mainClass = clientModule.getMainClass(); clientInfo.localClients.addAll(clientModule.getLocalClients()); clientInfo.remoteClients.addAll(clientModule.getRemoteClients()); clientInfo.callbackHandler = applicationClient.getCallbackHandler(); clientInfo.moduleId = getClientModuleId(clientModule); clientInfo.watchedResources.addAll(clientModule.getWatchedResources()); clientInfo.validationInfo = ValidatorBuilder.getInfo(clientModule.getValidationConfig()); clientInfo.uniqueId = clientModule.getUniqueId(); jndiEncInfoBuilder.build(applicationClient, clientModule.getJarLocation(), clientInfo.moduleId, clientModule.getModuleUri(), clientInfo.jndiEnc, clientInfo.jndiEnc); appInfo.clients.add(clientInfo); } }
webAppInfo.portInfos.addAll(this.configureWebservices(webModule.getWebservices()));
logger.info("config.configApp", null != location ? location : appModule.getModuleId()); deployer.deploy(appModule); final AppInfoBuilder appInfoBuilder = new AppInfoBuilder(this); final AppInfo info = appInfoBuilder.build(appModule); info.eventClassesNeedingAppClassloader.addAll(notLoaded);
void configureWebserviceSecurity(EjbJarInfo ejbJarInfo, EjbModule ejbModule) { Object altDD = ejbModule.getOpenejbJar(); List<PortInfo> infoList = ejbJarInfo.portInfos; configureWebserviceScurity(infoList, altDD); }
private void buildClientModules(final AppModule appModule, final AppInfo appInfo, final JndiEncInfoBuilder jndiEncInfoBuilder) throws OpenEJBException { for (final ClientModule clientModule : appModule.getClientModules()) { final ApplicationClient applicationClient = clientModule.getApplicationClient(); final ClientInfo clientInfo = new ClientInfo(); clientInfo.description = applicationClient.getDescription(); clientInfo.displayName = applicationClient.getDisplayName(); clientInfo.path = clientModule.getJarLocation(); clientInfo.mainClass = clientModule.getMainClass(); clientInfo.localClients.addAll(clientModule.getLocalClients()); clientInfo.remoteClients.addAll(clientModule.getRemoteClients()); clientInfo.callbackHandler = applicationClient.getCallbackHandler(); clientInfo.moduleId = getClientModuleId(clientModule); clientInfo.watchedResources.addAll(clientModule.getWatchedResources()); clientInfo.validationInfo = ValidatorBuilder.getInfo(clientModule.getValidationConfig()); clientInfo.uniqueId = clientModule.getUniqueId(); jndiEncInfoBuilder.build(applicationClient, clientModule.getJarLocation(), clientInfo.moduleId, clientModule.getModuleUri(), clientInfo.jndiEnc, clientInfo.jndiEnc); appInfo.clients.add(clientInfo); } }
logger.info("config.configApp", null != location ? location : appModule.getModuleId()); deployer.deploy(appModule); final AppInfoBuilder appInfoBuilder = new AppInfoBuilder(this); final AppInfo info = appInfoBuilder.build(appModule); info.eventClassesNeedingAppClassloader.addAll(notLoaded);
void configureWebserviceSecurity(final EjbJarInfo ejbJarInfo, final EjbModule ejbModule) { final Object altDD = ejbModule.getOpenejbJar(); final List<PortInfo> infoList = ejbJarInfo.portInfos; this.configureWebserviceScurity(infoList, altDD); }