private void undeploy() { if (deployedAppName != null) { try { deployer.undeploy(deployedAppName); } catch (Exception e) { _logger.warning("Cannot undeploy deployed modules: " + e.getMessage()); } } }
private void undeploy() { if (deployedAppName != null) { try { deployer.undeploy(deployedAppName); } catch (Exception e) { _logger.warning("Cannot undeploy deployed modules: " + e.getMessage()); } } }
public void undeploy(String appName) { try { getDeployer().undeploy(appName); } catch (GlassFishException e) { log.error("Undeploy of " + appName + " failed", e); } }
/** * Undeploys all deployed modules in reverse order. */ private void undeployModules() { try { Deployer deployer = glassFish.getDeployer(); while (!deployed.isEmpty()) { String applicationName = deployed.pop(); deployer.undeploy(applicationName); } } catch (GlassFishException exc) { throw new TestContainerException(exc); } }
private void shutdownInternal() throws GlassFishException { if (glassFish != null) { glassFish.getDeployer().undeploy(getApplicationName()); glassFish.stop(); glassFish = null; } }
deployer.undeploy(name); System.out.println("Undeployed = " + name); } else if ("quit".equalsIgnoreCase(command)) {
deployer.undeploy(name); System.out.println("Undeployed = " + name); } else if ("quit".equalsIgnoreCase(command)) {
public void undeploy(Archive<?> archive) throws DeploymentException { try { glassfish.getDeployer().undeploy(createDeploymentName(archive.getName())); } catch (Exception e) { throw new DeploymentException("Could not undeploy " + archive.getName(), e); } }
deployer.undeploy(appName);
/** * Stops the given <tt>context</tt> and removes it from this * <tt>VirtualServer</tt>. */ public void removeContext(Context context) throws GlassFishException { try { Deployer deployer = Globals.getDefaultHabitat().getComponent(Deployer.class); deployer.undeploy(context.getContextPath()); } catch (Exception ex) { throw new GlassFishException(new ConfigException( "Context with context path " + context.getContextPath() + " cannot be removed from virtual server " + getID())); } }