use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class RmiDamnExceptionTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
if (classPathHasSpaces()) {
return null;
}
LocateRegistry.createRegistry(getPort());
JndiRegistry context = super.createRegistry();
context.bind("echo", new EchoService());
return context;
}
use of org.apache.camel.impl.JndiRegistry 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.impl.JndiRegistry 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.impl.JndiRegistry in project camel by apache.
the class RouteboxDirectTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry registry = new JndiRegistry(createJndiContext());
// Wire the inner context & dispatchStrategy to the outer camelContext where the routebox is declared
registry.bind("ctx", createInnerContext());
registry.bind("strategy", new SimpleRouteDispatchStrategy());
return registry;
}
use of org.apache.camel.impl.JndiRegistry 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;
}
Aggregations