Package org.apache.geronimo.deployment.cli

Examples of org.apache.geronimo.deployment.cli.ServerConnection$KernelWrapper


    @Argument(required = true, description = "Name of new server instance")
    String serverName;

    @Override
    protected Object doExecute() throws Exception {
        ServerConnection connection = connect();

        DeploymentManager deploymentManager = connection.getDeploymentManager();
        NewServerInstance newServerInstance =
            (NewServerInstance) ((GeronimoDeploymentManager) deploymentManager).getImplementation(NewServerInstance.class);
        newServerInstance.newServerInstance(serverName);
        println("Server created");
        return null;
View Full Code Here


        if (isEmbedded()) {
            println("No credentials to save in embedded mode.");
            return null;
        }
       
        ServerConnection connection = connect();

        AbstractCommand command = new CommandLogin();

        BaseCommandArgs args = new BaseCommandArgs(new String[0]);
View Full Code Here

        Kernel kernel = getKernel();
        try {
            if (isEmbedded(kernel)) {
                bundleContext.getBundle(0).stop();
            } else {
                ServerConnection connection = connect();
                ServerProxy server =
                    new ServerProxy(((RemoteDeploymentManager)connection.getDeploymentManager()).getJMXConnector());
                server.shutdown();
            }
            println("Shutdown request has been issued");
        } catch (Exception e) {
            println("Unable to shutdown the server: " + e.getMessage());
View Full Code Here

TOP

Related Classes of org.apache.geronimo.deployment.cli.ServerConnection$KernelWrapper

Copyright © 2018 www.massapicom. 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.