Examples of SpringServiceUnitContainer


Examples of org.apache.servicemix.jbi.container.SpringServiceUnitContainer

    }

    protected List getServices(Kernel kernel) {
        try {
            Object jbi = kernel.getService(new StringServiceName("jbi"));
            SpringServiceUnitContainer suContainer = (SpringServiceUnitContainer) jbi;
            ActivationSpec[] specs = suContainer.getActivationSpecs();
            List services = new ArrayList();
            if (specs != null) {
                for (int i = 0; i < specs.length; i++) {
                    services.add(new LwContainerEndpoint(specs[i]));
                }
            }
            if (suContainer.getComponents() != null || suContainer.getEndpoints() != null
                    || suContainer.getListeners() != null || suContainer.getServices() != null) {
                services.add(new LwContainerExtra(suContainer.getComponents(), suContainer.getEndpoints(),
                                                  suContainer.getListeners(), suContainer.getServices()));
            }
            return services;
        } catch (Exception e) {
            throw new RuntimeException("Can not find 'jbi' bean", e);
        }
View Full Code Here

Examples of org.apache.servicemix.jbi.container.SpringServiceUnitContainer

    }

    protected List getServices(Kernel kernel) {
        try {
            Object jbi = kernel.getService(new StringServiceName("jbi"));
            SpringServiceUnitContainer suContainer = (SpringServiceUnitContainer) jbi;
            ActivationSpec[] specs = suContainer.getActivationSpecs();
            List services = new ArrayList();
            for (int i = 0; i < specs.length; i++) {
                services.add(new LwContainerEndpoint(specs[i]));
            }
            return services;
View Full Code Here

Examples of org.servicemix.jbi.container.SpringServiceUnitContainer

    public void init(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException {
        System.out.println("ServiceMixComponent: init: " + serviceUnitName + " path: " + serviceUnitRootPath);

        FileSystemXmlApplicationContext springContext = new FileSystemXmlApplicationContext("file:"+ serviceUnitRootPath +"/servicemix.xml" );
        SpringServiceUnitContainer ssuc = (SpringServiceUnitContainer) springContext.getBean("jbi");

        ServiceMixServiceUnit suc = new ServiceMixServiceUnit(this, serviceUnitName, serviceUnitRootPath, springContext, ssuc);
        serviceUnitRegistry.put(serviceUnitName, suc);
    }
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.