Package org.servicemix.jbi.management

Examples of org.servicemix.jbi.management.ManagementContextMBean


    public void execute() throws BuildException {
        if (componentName == null) {
            throw new BuildException("null componentName");
        }
        try {
            ManagementContextMBean is = getManagementContext();
            is.shutDownComponent(componentName);
        }
        catch (IOException e) {
            log.error("Caught an exception shutting down component", e);
            throw new BuildException(e);
        }
View Full Code Here


    public void execute() throws BuildException {
        if (componentName == null) {
            throw new BuildException("null compoenntName");
        }
        try {
            ManagementContextMBean is = getManagementContext();
            is.stopComponent(componentName);
        }
        catch (IOException e) {
            log.error("Caught an exception stopping component", e);
            throw new BuildException(e);
        }
View Full Code Here

    public void execute() throws BuildException {
        if (componentName == null) {
            throw new BuildException("null compoenntName");
        }
        try {
            ManagementContextMBean is = getManagementContext();
            is.startComponent(componentName);
        }
        catch (IOException e) {
            log.error("Caught an exception starting component", e);
            throw new BuildException(e);
        }
View Full Code Here

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

TOP

Related Classes of org.servicemix.jbi.management.ManagementContextMBean

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.