Package org.apache.servicemix.jbi.nmr.flow

Examples of org.apache.servicemix.jbi.nmr.flow.Flow


        boolean foundRoute = false;
        // If we found a destination, or this is a reply
        if (exchange.getEndpoint() != null || exchange.getRole() == Role.CONSUMER) {
            foundRoute = true;
            Flow flow = defaultFlowChooser.chooseFlow(flows, exchange);
            if (flow == null) {
                throw new MessagingException("Unable to choose a flow for exchange: " + exchange);
            }
            flow.send(exchange);
        }

        if (exchange.getRole() == Role.PROVIDER) {
            getSubscriptionManager().dispatchToSubscribers(exchange);
        }
View Full Code Here


        boolean foundRoute = false;
        // If we found a destination, or this is a reply
        if (exchange.getEndpoint() != null || exchange.getRole() == Role.CONSUMER) {
            foundRoute = true;
            Flow flow = defaultFlowChooser.chooseFlow(flows, exchange);
            if (flow == null) {
                throw new MessagingException("Unable to choose a flow for exchange: " + exchange);
            }
            flow.send(exchange);
        }

        if (exchange.getRole() == Role.PROVIDER) {
          getSubscriptionManager().dispatchToSubscribers(exchange);
        }
View Full Code Here

        Set<AbstractName> listGBeans = kernel.listGBeans(flows);
        for (AbstractName name: listGBeans) {
            if (!kernel.isRunning(name)) {
                kernel.startGBean(name);
            }
            Flow flow = (Flow) kernel.getGBean(name);
            flowSet.add(flow);
        }
       
        return flowSet.toArray(new Flow[0]);
    }
View Full Code Here

        boolean foundRoute = false;
        // If we found a destination, or this is a reply
        if (exchange.getEndpoint() != null || exchange.getRole() == Role.CONSUMER) {
            foundRoute = true;
            Flow flow = defaultFlowChooser.chooseFlow(flows, exchange);
            if (flow == null) {
                throw new MessagingException("Unable to choose a flow for exchange: " + exchange);
            }
            flow.send(exchange);
        }

        if (exchange.getRole() == Role.PROVIDER) {
            getSubscriptionManager().dispatchToSubscribers(exchange);
        }
View Full Code Here

        Set<AbstractName> listGBeans = kernel.listGBeans(flows);
        for (AbstractName name: listGBeans) {
            if (!kernel.isRunning(name)) {
                kernel.startGBean(name);
            }
            Flow flow = (Flow) kernel.getGBean(name);
            flowSet.add(flow);
        }
       
        return flowSet.toArray(new Flow[0]);
    }
View Full Code Here

        boolean foundRoute = false;
        // If we found a destination, or this is a reply
        if (exchange.getEndpoint() != null || exchange.getRole() == Role.CONSUMER) {
            foundRoute = true;
            Flow flow = defaultFlowChooser.chooseFlow(flows, exchange);
            if (flow == null) {
                throw new MessagingException("Unable to choose a flow for exchange: " + exchange);
            }
            flow.send(exchange);
        }

        if (exchange.getRole() == Role.PROVIDER) {
            getSubscriptionManager().dispatchToSubscribers(exchange);
        }
View Full Code Here

        boolean foundRoute = false;
        // If we found a destination, or this is a reply
        if (exchange.getEndpoint() != null || exchange.getRole() == Role.CONSUMER) {
            foundRoute = true;
            Flow flow = defaultFlowChooser.chooseFlow(flows, exchange);
            if (flow == null) {
                throw new MessagingException("Unable to choose a flow for exchange: " + exchange);
            }
            flow.send(exchange);
        }

        if (exchange.getRole() == Role.PROVIDER) {
          getSubscriptionManager().dispatchToSubscribers(exchange);
        }
View Full Code Here

        assertTrue(FlowProvider.getQuery(nameAndQuery).equals(query));
      
    }
   
    public void testGetFlows() throws Exception{
        Flow flow = FlowProvider.getFlow("st");
        assertTrue(flow instanceof STFlow);
        flow = FlowProvider.getFlow("seda");
        assertTrue(flow instanceof SedaFlow);
        flow = FlowProvider.getFlow("jms");
        assertTrue(flow instanceof JMSFlow);
View Full Code Here

        assertTrue(flow instanceof JMSFlow);
    }
   
    public void testSetProperties() throws Exception {
        String jmsURL = "reliable://tcp://fred:666";
        Flow flow = FlowProvider.getFlow("jms?jmsURL="+jmsURL);
        assertTrue(flow instanceof JMSFlow);
        JMSFlow jmsFlow = (JMSFlow)flow;
        assertTrue(jmsFlow.getJmsURL().equals(jmsURL));
    }
View Full Code Here

TOP

Related Classes of org.apache.servicemix.jbi.nmr.flow.Flow

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.