Search in sources :

Example 1 with BookCatalog

use of org.apache.camel.component.routebox.demo.BookCatalog in project camel by apache.

the class RouteboxDefaultContextAndRouteBuilderTest method createInnerRegistry.

private JndiRegistry createInnerRegistry() throws Exception {
    JndiRegistry innerRegistry = new JndiRegistry(createJndiContext());
    BookCatalog catalogBean = new BookCatalog();
    innerRegistry.bind("library", catalogBean);
    return innerRegistry;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) BookCatalog(org.apache.camel.component.routebox.demo.BookCatalog)

Example 2 with BookCatalog

use of org.apache.camel.component.routebox.demo.BookCatalog in project camel by apache.

the class RouteboxDirectProducerOnlyTest method createInnerContext.

private CamelContext createInnerContext() throws Exception {
    // Create a camel context to be encapsulated by the routebox
    JndiRegistry innerRegistry = new JndiRegistry(createJndiContext());
    BookCatalog catalogBean = new BookCatalog();
    innerRegistry.bind("library", catalogBean);
    CamelContext innerContext = new DefaultCamelContext(innerRegistry);
    innerContext.addRoutes(new SimpleRouteBuilder());
    return innerContext;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) CamelContext(org.apache.camel.CamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) BookCatalog(org.apache.camel.component.routebox.demo.BookCatalog) SimpleRouteBuilder(org.apache.camel.component.routebox.demo.SimpleRouteBuilder)

Example 3 with BookCatalog

use of org.apache.camel.component.routebox.demo.BookCatalog in project camel by apache.

the class RouteboxSedaTest method createInnerContext.

private CamelContext createInnerContext() throws Exception {
    // Create a camel context to be encapsulated by the routebox
    JndiRegistry innerRegistry = new JndiRegistry(createJndiContext());
    BookCatalog catalogBean = new BookCatalog();
    innerRegistry.bind("library", catalogBean);
    CamelContext innerContext = new DefaultCamelContext(innerRegistry);
    innerContext.addRoutes(new SimpleRouteBuilder());
    return innerContext;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) CamelContext(org.apache.camel.CamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) BookCatalog(org.apache.camel.component.routebox.demo.BookCatalog) SimpleRouteBuilder(org.apache.camel.component.routebox.demo.SimpleRouteBuilder)

Example 4 with BookCatalog

use of org.apache.camel.component.routebox.demo.BookCatalog in project camel by apache.

the class RouteboxDirectTest method createInnerContext.

private CamelContext createInnerContext() throws Exception {
    // Create a camel context to be encapsulated by the routebox
    JndiRegistry innerRegistry = new JndiRegistry(createJndiContext());
    BookCatalog catalogBean = new BookCatalog();
    innerRegistry.bind("library", catalogBean);
    CamelContext innerContext = new DefaultCamelContext(innerRegistry);
    innerContext.addRoutes(new SimpleRouteBuilder());
    return innerContext;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) CamelContext(org.apache.camel.CamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) BookCatalog(org.apache.camel.component.routebox.demo.BookCatalog) SimpleRouteBuilder(org.apache.camel.component.routebox.demo.SimpleRouteBuilder)

Example 5 with BookCatalog

use of org.apache.camel.component.routebox.demo.BookCatalog in project camel by apache.

the class RouteboxDispatchMapTest method createInnerRegistry.

private JndiRegistry createInnerRegistry() throws Exception {
    JndiRegistry innerRegistry = new JndiRegistry(createJndiContext());
    BookCatalog catalogBean = new BookCatalog();
    innerRegistry.bind("library", catalogBean);
    return innerRegistry;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) BookCatalog(org.apache.camel.component.routebox.demo.BookCatalog)

Aggregations

BookCatalog (org.apache.camel.component.routebox.demo.BookCatalog)5 JndiRegistry (org.apache.camel.impl.JndiRegistry)5 CamelContext (org.apache.camel.CamelContext)3 SimpleRouteBuilder (org.apache.camel.component.routebox.demo.SimpleRouteBuilder)3 DefaultCamelContext (org.apache.camel.impl.DefaultCamelContext)3