Package javax.jbi.component

Examples of javax.jbi.component.ServiceUnitManager.shutDown()


                    String componentName = sus[i].getTarget().getComponentName();
                    Component component = container.getComponent(componentName);
                    if (component != null) {
                        ServiceUnitManager sum = component.getServiceUnitManager();
                        if (sum != null) {
                            sum.shutDown(sus[i].getIdentification().getName());
                        }
                    }
                }
            }
            result = DeploymentServiceMBean.SHUTDOWN;
View Full Code Here


        if (refs == null || refs.length != 1) {
            throw new RuntimeException("no appropriate service :(");
        }
        ServiceUnitManager suM = ((Component) context.getService(refs[0]))
                .getServiceUnitManager();
        suM.shutDown(generatedName);
        suM.undeploy(generatedName, rootDir.getAbsolutePath());

    }

    public class BundleClassLoader extends ClassLoader {
View Full Code Here

        checkComponentStartedOrStopped("shutDown");
        final ServiceUnitManager sum = getServiceUnitManager();
        new TimedOutExecutor(getComponentClassLoader(), "shutdown " + getName(),
                new Callable<Object>() {
                    public Object call() throws Exception {
                        sum.shutDown(getName());
                        return null;
                    }
                }).execute(getDeploymentTimeout());
        currentState = SHUTDOWN;
    }
View Full Code Here

        if (refs == null || refs.length != 1) {
            throw new RuntimeException("no appropriate service :(");
        }
        ServiceUnitManager suM = ((Component) context.getService(refs[0]))
                .getServiceUnitManager();
        suM.shutDown(generatedName);
        suM.undeploy(generatedName, rootDir.getAbsolutePath());

    }

    public class BundleClassLoader extends ClassLoader {
View Full Code Here

        checkComponentStartedOrStopped("shutDown");
        ServiceUnitManager sum = getServiceUnitManager();
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        try {
            Thread.currentThread().setContextClassLoader(getComponentClassLoader());
            sum.shutDown(getName());
        } finally {
            Thread.currentThread().setContextClassLoader(cl);
        }
        currentState = SHUTDOWN;
    }
View Full Code Here

        checkComponentStartedOrStopped("shutDown");
        ServiceUnitManager sum = getServiceUnitManager();
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        try {
            Thread.currentThread().setContextClassLoader(getComponentClassLoader());
            sum.shutDown(getName());
        } finally {
            Thread.currentThread().setContextClassLoader(cl);
        }
        currentState = SHUTDOWN;
    }
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.