use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class NettyCustomPipelineFactorySynchTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry registry = super.createRegistry();
registry.bind("cpf", new TestClientChannelPipelineFactory(null));
registry.bind("spf", new TestServerChannelPipelineFactory(null));
return registry;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class UnsharableCodecsConflicts2Test method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry registry = super.createRegistry();
// create a single decoder
ChannelHandlerFactory decoder = ChannelHandlerFactories.newLengthFieldBasedFrameDecoder(1048576, 0, 4, 0, 4);
registry.bind("length-decoder", decoder);
return registry;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class UnsharableCodecsConflictsTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry registry = super.createRegistry();
// we can share the decoder between multiple netty consumers, because they have the same configuration
// and we use a ChannelHandlerFactory
ChannelHandlerFactory decoder = ChannelHandlerFactories.newLengthFieldBasedFrameDecoder(1048576, 0, 4, 0, 4);
registry.bind("length-decoder", decoder);
registry.bind("length-decoder2", decoder);
return registry;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class NettySSLClientCertHeadersTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry registry = super.createRegistry();
registry.bind("ksf", new File("src/test/resources/keystore.jks"));
registry.bind("tsf", new File("src/test/resources/keystore.jks"));
return registry;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class NettySSLPassphaseBeanTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
jndi.bind("myBean", "changeit");
return jndi;
}
Aggregations