Package org.mule.jbi.components.mule

Examples of org.mule.jbi.components.mule.InboundRouterComponent


        registerInboundRouter(container, ctx);
    }

    protected void registerInboundRouter(JbiContainer container, ComponentContext ctx) throws JBIException, IOException {
        if(inboundMessageRouter==null) return;
        InboundRouterComponent routerComponent = new InboundRouterComponent();
        routerComponent.setRouter(inboundMessageRouter);
        QName routerService = new QName(name + ":InboundRouter");
        routerComponent.setTargetService(routerService);
        try {
            container.getRegistry().addTransientComponent(routerService.getLocalPart(),
                    ComponentType.JBI_ENGINE_COMPONENT, routerComponent, null);
        } catch (RegistryException e) {
            throw new JBIException(e);
        }
        routerComponent.getContext().activateEndpoint(routerService, routerService.getLocalPart());
    }
View Full Code Here

TOP

Related Classes of org.mule.jbi.components.mule.InboundRouterComponent

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.