Examples of UMOEndpoint


Examples of org.mule.umo.endpoint.UMOEndpoint

            throw new NullPointerException("Inbound Message router must be set");
        }

        QName routerService = new QName(getName());
        for (Iterator iterator = router.getEndpoints().iterator(); iterator.hasNext();) {
            UMOEndpoint endpoint = (UMOEndpoint) iterator.next();
            endpoint.initialise();
            if(endpoint.getEndpointURI().getScheme().equals("container")) {
                QName name = getServiceName(endpoint);
                context.activateEndpoint(name, endpoint.getEndpointURI().getAddress());
            } else {
                MuleReceiverComponent receiverComponent = new MuleReceiverComponent();
                receiverComponent.setEndpoint(endpoint);
                receiverComponent.setName(endpoint.getEndpointURI().getScheme() + ":" + getName());

                receiverComponent.setTargetService(routerService);
                receiverComponent.setContainer(container);

                try {
View Full Code Here

Examples of org.mule.umo.endpoint.UMOEndpoint

        QName routerService = new QName(getName());
        for (Iterator iterator = router.getRouters().iterator(); iterator.hasNext();) {
            UMOOutboundRouter r = (UMOOutboundRouter) iterator.next();

            for (Iterator iterator1 = r.getEndpoints().iterator(); iterator1.hasNext();) {
                UMOEndpoint endpoint = (UMOEndpoint) iterator1.next();
                endpoint.initialise();
                if(endpoint.getEndpointURI().getScheme().equals("container")) {
                    QName name = getServiceName(endpoint);
                    context.activateEndpoint(name, endpoint.getEndpointURI().getAddress());
                } else {
                    MuleReceiverComponent receiverComponent = new MuleReceiverComponent();
                    receiverComponent.setEndpoint(endpoint);
                    receiverComponent.setName(endpoint.getEndpointURI().getScheme() + ":" + getName());

                    receiverComponent.setTargetService(routerService);
                    receiverComponent.setContainer(container);

                    try {
View Full Code Here

Examples of org.mule.umo.endpoint.UMOEndpoint

        return new MuleMessage(source, properties);
    }

    public static UMOEvent createEvent(NormalizedMessage message, AbstractComponent component) throws MessagingException {
        UMOMessage umoMessage = createMessage(message);
        UMOEndpoint endpoint = (UMOEndpoint)message.getProperty(MuleProperties.MULE_ENDPOINT_PROPERTY);
        if(endpoint == null) {
            throw new MessagingException("Endpoint property '" + MuleProperties.MULE_ENDPOINT_PROPERTY + "' not set on message");
        }
        return new MuleEvent(umoMessage, endpoint, new MuleSession(new NullUMOComponent(component.getName()), null), endpoint.isSynchronous());
    }
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.