Examples of SimpleRouteBuilder


Examples of org.apache.camel.component.routebox.demo.SimpleRouteBuilder

        JndiRegistry innerRegistry = new JndiRegistry(createJndiContext());
        BookCatalog catalogBean = new BookCatalog();
        innerRegistry.bind("library", catalogBean);
       
        CamelContext innerContext = new DefaultCamelContext(innerRegistry);
        innerContext.addRoutes(new SimpleRouteBuilder());
       
        return innerContext;
    }
View Full Code Here

Examples of org.apache.camel.component.routebox.demo.SimpleRouteBuilder

        JndiRegistry innerRegistry = new JndiRegistry(createJndiContext());
        BookCatalog catalogBean = new BookCatalog();
        innerRegistry.bind("library", catalogBean);
       
        CamelContext innerContext = new DefaultCamelContext(innerRegistry);
        innerContext.addRoutes(new SimpleRouteBuilder());
       
        return innerContext;
    }
View Full Code Here

Examples of org.apache.camel.component.routebox.demo.SimpleRouteBuilder

        JndiRegistry innerRegistry = new JndiRegistry(createJndiContext());
        BookCatalog catalogBean = new BookCatalog();
        innerRegistry.bind("library", catalogBean);
       
        CamelContext innerContext = new DefaultCamelContext(innerRegistry);
        innerContext.addRoutes(new SimpleRouteBuilder());
       
        return innerContext;
    }
View Full Code Here

Examples of org.apache.camel.component.routebox.demo.SimpleRouteBuilder

    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry registry = new JndiRegistry(createJndiContext());
       
        // Wire the routeDefinitions & dispatchStrategy to the outer camelContext where the routebox is declared
        List<RouteBuilder> routes = new ArrayList<RouteBuilder>();
        routes.add(new SimpleRouteBuilder());
        registry.bind("registry", createInnerRegistry());
        registry.bind("routes", routes);
        registry.bind("strategy", new SimpleRouteDispatchStrategy());
       
        return registry;
View Full Code Here

Examples of org.apache.camel.component.routebox.demo.SimpleRouteBuilder

    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry registry = new JndiRegistry(createJndiContext());
       
        // Wire the routeDefinitions & dispatchStrategy to the outer camelContext where the routebox is declared
        List<RouteBuilder> routes = new ArrayList<RouteBuilder>();
        routes.add(new SimpleRouteBuilder());
        registry.bind("registry", createInnerRegistry());
        registry.bind("routes", routes);
       
        // Wire a dispatch map to registry
        Map<String, String> map = new HashMap<String, String>();
View Full Code Here

Examples of org.apache.camel.spring.util.SimpleRouteBuilder

public class MainTest extends TestCase {
    private static final transient Log LOG = LogFactory.getLog(MainTest.class);

    public void testMain() throws Exception {
        // lets make a simple route
        SimpleRouteBuilder builder = new SimpleRouteBuilder();
        builder.setFromUri("file://src/test/data?noop=true");
        builder.setBeanClass("org.apache.camel.spring.example.MyProcessor");
        builder.setToUri("mock:results");

        Main main = new Main();
        main.addRouteBuilder(builder);
        main.start();
View Full Code Here

Examples of org.apache.camel.spring.util.SimpleRouteBuilder

public class MainTest extends TestCase {
    private static final transient Log LOG = LogFactory.getLog(MainTest.class);

    public void testMain() throws Exception {
        // lets make a simple route
        SimpleRouteBuilder builder = new SimpleRouteBuilder();
        builder.setFromUri("file://src/test/data?noop=true");
        builder.setBeanClass("org.apache.camel.spring.example.MyProcessor");
        builder.setToUri("mock:results");

        Main main = new Main();
        main.addRouteBuilder(builder);
        main.start();
View Full Code Here

Examples of org.apache.camel.spring.util.SimpleRouteBuilder

* @version $Revision: 641676 $
*/
public class MainExampleTest extends TestCase {
    public void testMain() throws Exception {
        // lets make a simple route
        SimpleRouteBuilder builder = new SimpleRouteBuilder();
        builder.setFromUri("file://src/test/data?noop=true");
        builder.setBeanClass("org.apache.camel.spring.example.MyProcessor");
        builder.setToUri("file://target/mainTest");

        Main main = new Main();
        main.addRouteBuilder(builder);
        main.start();

View Full Code Here

Examples of org.apache.camel.spring.util.SimpleRouteBuilder

public class MainTest extends TestCase {
    private static final transient Log LOG = LogFactory.getLog(MainTest.class);

    public void testMain() throws Exception {
        // lets make a simple route
        SimpleRouteBuilder builder = new SimpleRouteBuilder();
        builder.setFromUri("file://src/test/data?noop=true");
        builder.setBeanClass("org.apache.camel.spring.example.MyProcessor");
        builder.setToUri("mock:results");

        Main main = new Main();
        main.addRouteBuilder(builder);
        main.start();
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.