All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.mojo.was6.WsStopServerMojo Maven / Gradle / Ivy

Go to download

Tools for working with IBM WebSphere 6.0.x and 6.1.x. This plugin works along with an installation of WebSphere Application Server or Process Server - standalone or ND installation, to provide automated tasks for: generating RMIC stubs, starting/stopping servers, installing/updating/uninstalling EARs to application servers, run serviceDeploy and run arbitrary scripts with wsadmin.

There is a newer version: 1.2.1
Show newest version
package org.codehaus.mojo.was6;

import org.apache.maven.plugin.MojoExecutionException;
import org.dom4j.Document;

/**
 * This goal enables you to stop a standalone server instance. This is not used to stop a server controlled by
 * DeploymentManager. Therefore, this task is useful for the Base Application Server, and to stop the Node Agent and/or
 * DeploymentManager. If you wish to stop a server managed by the Deployment Manager, use the wsadmin task to execute a
 * scripting command.
 * 
 * @goal wsStopServer
 * @author David J. M. Karlsen
 */
public class WsStopServerMojo
    extends AbstractServerMojo
{

    /**
     * Specifies the type of connection to be used. Valid values are: SOAP or RMI
     * 
     * @parameter expression="${was6.conntype}" default-value="SOAP"
     */
    private String conntype;

    /**
     * Admin port of the server you wish to stop.
     * 
     * @parameter expression="${was6.port}"
     */
    private Integer port;

    /**
     * {@inheritDoc}
     */
    protected String getTaskName()
    {
        return "wsStopServer";
    }

    /**
     * {@inheritDoc}
     */
    protected void configureBuildScript( Document document )
        throws MojoExecutionException
    {
        super.configureBuildScript( document );
        configureTaskAttribute( document, "conntype", conntype );
        configureTaskAttribute( document, "port", port );
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy