/** * Modifies context root. * * @param dep webservice deployment * @param jbossWebMD web meta data */ private void modifyContextRoot(final Deployment dep, final JBossWebMetaData jbossWebMD) { final String contextRoot = dep.getService().getContextRoot(); this.log.debug("Setting context root: " + contextRoot + " for deployment: " + dep.getSimpleName()); jbossWebMD.setContextRoot(contextRoot); }
/** * Modifies context root. * * @param dep webservice deployment * @param jbossWebMD web meta data */ private void modifyContextRoot(final Deployment dep, final JBossWebMetaData jbossWebMD) { final String contextRoot = dep.getService().getContextRoot(); this.log.debug("Setting context root: " + contextRoot + " for deployment: " + dep.getSimpleName()); jbossWebMD.setContextRoot(contextRoot); }
/** * Modifies context root. * * @param dep webservice deployment * @param jbossWebMD web meta data */ private void modifyContextRoot(final Deployment dep, final JBossWebMetaData jbossWebMD) { final String contextRoot = dep.getService().getContextRoot(); this.log.debug("Setting context root: " + contextRoot + " for deployment: " + dep.getSimpleName()); jbossWebMD.setContextRoot(contextRoot); }
@Override public void start(Deployment dep) { final String contextRoot = dep.getService().getContextRoot(); if (contextRoot == null || contextRoot.startsWith("/") == false) throw Messages.MESSAGES.contextRootExpectedToStartWithLeadingSlash(contextRoot); for (Endpoint ep : dep.getService().getEndpoints()) { final StringBuilder name = new StringBuilder(Endpoint.SEPID_DOMAIN + ":"); name.append(Endpoint.SEPID_PROPERTY_CONTEXT + "=" + contextRoot.substring(1) + ","); name.append(Endpoint.SEPID_PROPERTY_ENDPOINT + "=" + ep.getShortName()); ep.setName(ObjectNameFactory.create(name.toString())); } }
/** * Modifies context root. * * @param dep webservice deployment * @param jbossWebMD web meta data */ private void modifyContextRoot(final Deployment dep, final JBossWebMetaData jbossWebMD) { final String contextRoot = dep.getService().getContextRoot(); ROOT_LOGGER.settingContextRoot(contextRoot, dep.getSimpleName()); jbossWebMD.setContextRoot(contextRoot); }
private void undeploy(Deployment dep) { try { AbstractDeployment deployment = createSimpleDeployment(dep.getService().getContextRoot()); mainDeployer.undeploy(deployment); } catch (Exception ex) { WSFDeploymentException.rethrow(ex); } }
public void destroy(Deployment dep) { try { AbstractDeployment deployment = createSimpleDeployment(dep.getService().getContextRoot()); mainDeployer.undeploy(deployment); } catch (Exception ex) { WSFDeploymentException.rethrow(ex); } }
public void destroy(Deployment dep) { try { AbstractDeployment deployment = createSimpleDeployment(dep.getService().getContextRoot()); mainDeployer.undeploy(deployment); } catch (Exception ex) { WSFDeploymentException.rethrow(ex); } }
public void destroy(Deployment dep) { try { AbstractDeployment deployment = createSimpleDeployment(dep.getService().getContextRoot()); mainDeployer.undeploy(deployment); } catch (Exception ex) { WSFDeploymentException.rethrow(ex); } }
@Override public void start(Deployment dep) { String contextRoot = dep.getService().getContextRoot(); if (contextRoot == null) { contextRoot = getExplicitContextRoot(dep); if (contextRoot == null) contextRoot = getImplicitContextRoot((ArchiveDeployment)dep); // Always prefix with '/' if (contextRoot.startsWith("/") == false) contextRoot = "/" + contextRoot; dep.getService().setContextRoot(contextRoot); } }
@Override public void start(Deployment dep) { String contextRoot = dep.getService().getContextRoot(); if (contextRoot == null) { contextRoot = getExplicitContextRoot(dep); if (contextRoot == null) contextRoot = getImplicitContextRoot((ArchiveDeployment)dep); // Always prefix with '/' if (contextRoot.startsWith("/") == false) contextRoot = "/" + contextRoot; dep.getService().setContextRoot(contextRoot); } }
/** * Modifies context root. * * @param dep webservice deployment * @param jbossWebMD web meta data */ private void modifyContextRoot(final Deployment dep, final JBossWebMetaData jbossWebMD) { final String contextRoot = dep.getService().getContextRoot(); if (WSLogger.ROOT_LOGGER.isTraceEnabled()) { WSLogger.ROOT_LOGGER.tracef("Setting context root: %s for deployment: %s", contextRoot, dep.getSimpleName()); } jbossWebMD.setContextRoot(contextRoot); }
/** * Modifies context root. * * @param dep webservice deployment * @param jbossWebMD web meta data */ private void modifyContextRoot(final Deployment dep, final JBossWebMetaData jbossWebMD) { final String contextRoot = dep.getService().getContextRoot(); if (WSLogger.ROOT_LOGGER.isTraceEnabled()) { WSLogger.ROOT_LOGGER.tracef("Setting context root: %s for deployment: %s", contextRoot, dep.getSimpleName()); } jbossWebMD.setContextRoot(contextRoot); }
protected void createJBossWebAppDescriptor(Deployment dep, JBossWebMetaData jbwmd, SecurityHandler securityHandler) { /* Create a jboss-web <jboss-web> <security-domain>java:/jaas/cts</security-domain> <context-root>/ws/ejbN/</context-root> <virtual-host>some.domain.com</virtual-host> </jboss-web> */ if (securityHandler != null) securityHandler.addSecurityDomain(jbwmd, dep); // Get the context root for this deployment String contextRoot = dep.getService().getContextRoot(); if (contextRoot == null) throw new WSFDeploymentException("Cannot obtain context root"); jbwmd.setContextRoot(contextRoot); String[] virtualHosts = dep.getService().getVirtualHosts(); if (virtualHosts != null && virtualHosts.length > 0) { jbwmd.setVirtualHosts(Arrays.asList(virtualHosts)); } } }
protected void createJBossWebAppDescriptor(Deployment dep, JBossWebMetaData jbwmd, SecurityHandler securityHandler) { /* Create a jboss-web <jboss-web> <security-domain>java:/jaas/cts</security-domain> <context-root>/ws/ejbN/</context-root> <virtual-host>some.domain.com</virtual-host> </jboss-web> */ if (securityHandler != null) securityHandler.addSecurityDomain(jbwmd, dep); // Get the context root for this deployment String contextRoot = dep.getService().getContextRoot(); if (contextRoot == null) throw new WSFDeploymentException("Cannot obtain context root"); jbwmd.setContextRoot(contextRoot); String[] virtualHosts = dep.getService().getVirtualHosts(); if (virtualHosts != null && virtualHosts.length > 0) { jbwmd.setVirtualHosts(Arrays.asList(virtualHosts)); } } }
protected void createJBossWebAppDescriptor(Deployment dep, JBossWebMetaData jbwmd, SecurityHandler securityHandler) { /* Create a jboss-web <jboss-web> <security-domain>java:/jaas/cts</security-domain> <context-root>/ws/ejbN/</context-root> <virtual-host>some.domain.com</virtual-host> </jboss-web> */ if (securityHandler != null) securityHandler.addSecurityDomain(jbwmd, dep); // Get the context root for this deployment String contextRoot = dep.getService().getContextRoot(); if (contextRoot == null) throw new WSFDeploymentException("Cannot obtain context root"); jbwmd.setContextRoot(contextRoot); String[] virtualHosts = dep.getService().getVirtualHosts(); if (virtualHosts != null && virtualHosts.length > 0) { jbwmd.setVirtualHosts(Arrays.asList(virtualHosts)); } } }
private void deploy(Deployment dep) { JBossWebMetaData jbwmd = dep.getAttachment(JBossWebMetaData.class); if (jbwmd == null) throw new WebServiceException("Cannot find web meta data"); try { webMetaDataModifier.modifyMetaData(dep); final AbstractDeployment deployment = createSimpleDeployment(dep.getService().getContextRoot()); MutableAttachments mutableAttachments = (MutableAttachments)deployment.getPredeterminedManagedObjects(); mutableAttachments.addAttachment(HttpSpec.PROPERTY_GENERATED_WEBAPP, Boolean.TRUE); mutableAttachments.addAttachment(ClassLoaderFactory.class, new ContextClassLoaderFactory()); mutableAttachments.addAttachment(JBossWebMetaData.class, jbwmd); mainDeployer.deploy(deployment); } catch (Exception ex) { WSFDeploymentException.rethrow(ex); } }
public void create(Deployment dep) { JBossWebMetaData jbwmd = dep.getAttachment(JBossWebMetaData.class); if (jbwmd == null) throw new WebServiceException("Cannot find web meta data"); try { webMetaDataModifier.modifyMetaData(dep); AbstractDeployment deployment = createSimpleDeployment(dep.getService().getContextRoot()); MutableAttachments mutableAttachments = (MutableAttachments)deployment.getPredeterminedManagedObjects(); mutableAttachments.addAttachment(WebMetaDataModifier.PROPERTY_GENERATED_WEBAPP, Boolean.TRUE); mutableAttachments.addAttachment(ClassLoaderFactory.class, new ContextClassLoaderFactory()); mutableAttachments.addAttachment(JBossWebMetaData.class, jbwmd); mainDeployer.deploy(deployment); } catch (Exception ex) { WSFDeploymentException.rethrow(ex); } }
public void create(Deployment dep) { JBossWebMetaData jbwmd = dep.getAttachment(JBossWebMetaData.class); if (jbwmd == null) throw new WebServiceException("Cannot find web meta data"); try { webMetaDataModifier.modifyMetaData(dep); AbstractDeployment deployment = createSimpleDeployment(dep.getService().getContextRoot()); MutableAttachments mutableAttachments = (MutableAttachments)deployment.getPredeterminedManagedObjects(); mutableAttachments.addAttachment(WebMetaDataModifier.PROPERTY_GENERATED_WEBAPP, Boolean.TRUE); mutableAttachments.addAttachment(ClassLoaderFactory.class, new ContextClassLoaderFactory()); mutableAttachments.addAttachment(JBossWebMetaData.class, jbwmd); mainDeployer.deploy(deployment); } catch (Exception ex) { WSFDeploymentException.rethrow(ex); } }
public void create(Deployment dep) { JBossWebMetaData jbwmd = dep.getAttachment(JBossWebMetaData.class); if (jbwmd == null) throw new WebServiceException("Cannot find web meta data"); try { webMetaDataModifier.modifyMetaData(dep); AbstractDeployment deployment = createSimpleDeployment(dep.getService().getContextRoot()); MutableAttachments mutableAttachments = (MutableAttachments)deployment.getPredeterminedManagedObjects(); mutableAttachments.addAttachment(WebMetaDataModifier.PROPERTY_GENERATED_WEBAPP, Boolean.TRUE); mutableAttachments.addAttachment(ClassLoaderFactory.class, new ContextClassLoaderFactory()); mutableAttachments.addAttachment(JBossWebMetaData.class, jbwmd); mainDeployer.deploy(deployment); } catch (Exception ex) { WSFDeploymentException.rethrow(ex); } }