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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations