Package org.mule.routing

Examples of org.mule.routing.ScatterGatherRouter


    private ThreadingProfile threadingProfile;

    @Override
    public ScatterGatherRouter getObject() throws Exception
    {
        ScatterGatherRouter sg = new ScatterGatherRouter();
        sg.setTimeout(timeout);

        for (MessageProcessor mp : this.messageProcessors)
        {
            sg.addRoute(mp);
        }

        if (this.aggregationStrategy != null)
        {
            sg.setAggregationStrategy(this.aggregationStrategy);
        }

        if (this.threadingProfile != null)
        {
            sg.setThreadingProfile(this.threadingProfile);
        }

        return sg;
    }
View Full Code Here


    }

    @Test(expected = InitialisationException.class)
    public void oneRouteProgramatically() throws Exception
    {
        ScatterGatherRouter sc = new ScatterGatherRouter();
        sc.setRoutes(Collections.<MessageProcessor>emptyList());

        try
        {
            sc.initialise();
        }
        catch (InitialisationException e)
        {
            Asserts.assertTrue(e.getCause() instanceof IllegalStateException);
            throw e;
View Full Code Here

TOP

Related Classes of org.mule.routing.ScatterGatherRouter

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.