Package org.glassfish.embeddable

Examples of org.glassfish.embeddable.Deployer.undeploy()


            //  undeploy each app in for-each loop
            for (String deployedApp : deployedApps) {
                try {
                    //see http://java.net/jira/browse/EMBEDDED_GLASSFISH-123                   
                    deployer.undeploy(deployedApp, "--droptables", "true");                   
                } catch (GlassFishException glassFishException) {
                    throw new TestContainerException(glassFishException);
                }
                LOGGER.info("Undeployed = " + deployedApp);
            }
View Full Code Here


        }
        if (appName == null) {
            throw new Exception("Application name can not be null");
        }
        Deployer deployer = glassfish.getDeployer();
        deployer.undeploy(appName);
        System.out.println("Undeployed [" + appName + "]");
    }

    public static void runCommand(String commandLine, String serverId) throws Exception {
        GlassFish glassfish = gfMap.get(serverId);
View Full Code Here

        }
        if (appName == null) {
            throw new Exception("Application name can not be null");
        }
        Deployer deployer = glassfish.getDeployer();
        deployer.undeploy(appName);
        System.out.println("Undeployed [" + appName + "]");
    }

    public static void runCommand(String commandLine, String serverId) throws Exception {
        GlassFish glassfish = gfMap.get(serverId);
View Full Code Here

        gf.start();

        Deployer deployer = gf.getDeployer();
        for (String appName : deployer.getDeployedApplications()) {
            log.info("undeploying " + appName);
            deployer.undeploy(appName);
        }

        URI sampleWarUri = new URI("mvn:org.apache.wicket/wicket-examples/1.5.3/war");
        String sampleAppName = "wicket-examples";
View Full Code Here

        log.info("deploying " + sampleAppName);
        deployer.deploy(sampleWarUri, "--name", sampleAppName, "--contextroot", sampleAppName);

        log.info("undeploying " + sampleAppName);
        deployer.undeploy(sampleAppName);

        log.info("stopping GlassFish");
        gf.stop();
    }
}
View Full Code Here

    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);
        }
View Full Code Here

        }
        if (appName == null) {
            throw new Exception("Application name can not be null");
        }
        Deployer deployer = glassfish.getDeployer();
        deployer.undeploy(appName);
        System.out.println("Undeployed [" + appName + "]");
    }

    public static void runCommand(String commandLine, String serverId) throws Exception {
        GlassFish glassfish = gfMap.get(serverId);
View Full Code Here

        //  undeploy each app in for-each loop
        for (String deployedApp : deployedApps) {
            try {
                //see http://java.net/jira/browse/EMBEDDED_GLASSFISH-123
                deployer.undeploy(deployedApp, "--droptables", "true");
            } catch (GlassFishException glassFishException) {
                throw new TestContainerException(glassFishException);
            }
            LOGGER.info("Undeployed = " + deployedApp);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.