use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class RestNettyHttpGetWildcardsTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
jndi.bind("mybinding", new RestNettyHttpBinding());
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class NettyHttpTwoRoutesBootstrapConfigurationTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
// create NettyServerBootstrapConfiguration instance where we can configure the bootstrap
// option we want to use in our Camel routes. This allows us to configure this once,
// and also explicit
bootstrapConfiguration = new NettyServerBootstrapConfiguration();
bootstrapConfiguration.setBacklog(200);
bootstrapConfiguration.setConnectTimeout(5000);
bootstrapConfiguration.setKeepAlive(true);
bootstrapConfiguration.setWorkerCount(4);
// register the configuration in the registry with this key
jndi.bind("myBootstrapOptions", bootstrapConfiguration);
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class NettyHttpCompressTest method createRegistry.
// setup the decompress decoder here
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry registry = super.createRegistry();
List<ChannelHandler> decoders = new ArrayList<ChannelHandler>();
decoders.add(new HttpContentDecompressor());
registry.bind("myDecoders", decoders);
return registry;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class NettyHttpTwoRoutesBootstrapConfigurationTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
// create NettyServerBootstrapConfiguration instance where we can configure the bootstrap
// option we want to use in our Camel routes. This allows us to configure this once,
// and also explicit
bootstrapConfiguration = new NettyServerBootstrapConfiguration();
bootstrapConfiguration.setBacklog(200);
bootstrapConfiguration.setConnectTimeout(5000);
bootstrapConfiguration.setKeepAlive(true);
bootstrapConfiguration.setWorkerCount(4);
// register the configuration in the registry with this key
jndi.bind("myBootstrapOptions", bootstrapConfiguration);
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class PahoComponentTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry registry = super.createRegistry();
registry.bind("connectOptions", connectOptions);
return registry;
}
Aggregations