use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class OpentracingSpanCollectorInRegistryTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry registry = super.createRegistry();
registry.bind("tracer", NoopTracerFactory.create());
return registry;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class DelegateEndpointQuartzTest method createRegistry.
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry registry = new JndiRegistry(createJndiContext());
registry.bind("my", new MyComponent());
return registry;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class QuartzStartDelayedWithReferenceTest method createRegistry.
// just bind the reference value here
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry registry = super.createRegistry();
registry.bind("interval", new Long(2));
registry.bind("count", new Integer(1));
return registry;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class MultiplePoliciesOnRouteTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry registry = new JndiRegistry(createJndiContext());
registry.bind("startPolicy", createRouteStartPolicy());
registry.bind("throttlePolicy", createThrottlePolicy());
return registry;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class RmiConcurrencyTest 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;
}
Aggregations