Package javax.jbi.management

Examples of javax.jbi.management.DeploymentServiceMBean


    public void execute() throws BuildException {
        if (assemblyName == null) {
            throw new BuildException("null assemblyName");
        }
        try {
            DeploymentServiceMBean is = getDeploymentService();
            is.start(getAssemblyName());
        }
        catch (IOException e) {
            log.error("Caught an exception starting assembly", e);
            throw new BuildException(e);
        }
View Full Code Here


    public void execute() throws BuildException {
        if (assemblyName == null) {
            throw new BuildException("null assemblyName");
        }
        try {
            DeploymentServiceMBean is = getDeploymentService();
            String[] sus = is.getDeployedServiceUnitList(assemblyName);
            if (sus != null) {
                for (int i = 0;i < sus.length;i++) {
                    System.out.println(sus[i]);
                }
            }
View Full Code Here

    public void execute() throws BuildException {
        if (assemblyName == null) {
            throw new BuildException("null assemblyName");
        }
        try {
            DeploymentServiceMBean is = getDeploymentService();
            is.shutDown(getAssemblyName());
        }
        catch (IOException e) {
            log.error("Caught an exception shutting down assembly", e);
            throw new BuildException(e);
        }
View Full Code Here

    public void execute() throws BuildException {
        if (assemblyName == null) {
            throw new BuildException("null assemblyName");
        }
        try {
            DeploymentServiceMBean is = getDeploymentService();
            is.undeploy(assemblyName);
        }
        catch (IOException e) {
            log.error("Caught an exception uninstalling the assembly", e);
            throw new BuildException(e);
        }
View Full Code Here

     *
     * @throws BuildException
     */
    public void execute() throws BuildException {
        try {
            DeploymentServiceMBean is = getDeploymentService();
            String[] sas = is.getDeployedServiceAssemblies();
            if (sas != null) {
                for (int i = 0;i < sas.length;i++) {
                    System.out.println(sas[i]);
                }
            }
View Full Code Here

    public void execute() throws BuildException {
        if (assemblyName == null) {
            throw new BuildException("null assemblyName");
        }
        try {
            DeploymentServiceMBean is = getDeploymentService();
            is.stop(getAssemblyName());
        }
        catch (IOException e) {
            log.error("Caught an exception stopping assembly", e);
            throw new BuildException(e);
        }
View Full Code Here

        if (archivePath == null){
            throw new BuildException("null archivePath - archivePath should be an archive");
        }
        if (archivePath.endsWith(".zip") || archivePath.endsWith(".jar")){
            try {
                DeploymentServiceMBean is = getDeploymentService();
                is.deploy(archivePath);
            }
            catch (IOException e) {
                log.error("Caught an exception getting the installation service",e);
                throw new BuildException(e);
            }
View Full Code Here

        InstallationServiceMBean mbean = jbiTask.getInstallationService();
        assertNotNull(mbean);
    }

    public void testGetDeploymentService() throws Exception {
        DeploymentServiceMBean mbean = jbiTask.getDeploymentService();
        assertNotNull(mbean);
    }
View Full Code Here

        jbiTask.close();
        super.tearDown();
    }

    public void testGetDeploymentService() throws Exception {
        DeploymentServiceMBean mbean = jbiTask.getDeploymentService();
        assertNotNull(mbean);
        mbean.getDeployedServiceAssemblies();
    }
View Full Code Here

TOP

Related Classes of javax.jbi.management.DeploymentServiceMBean

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.