Search in sources :

Example 76 with JndiRegistry

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;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) RestNettyHttpBinding(org.apache.camel.component.netty.http.RestNettyHttpBinding)

Example 77 with JndiRegistry

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;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) NettyServerBootstrapConfiguration(org.apache.camel.component.netty.NettyServerBootstrapConfiguration)

Example 78 with JndiRegistry

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;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) ArrayList(java.util.ArrayList) ChannelHandler(org.jboss.netty.channel.ChannelHandler) HttpContentDecompressor(org.jboss.netty.handler.codec.http.HttpContentDecompressor)

Example 79 with JndiRegistry

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;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) NettyServerBootstrapConfiguration(org.apache.camel.component.netty4.NettyServerBootstrapConfiguration)

Example 80 with JndiRegistry

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;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry)

Aggregations

JndiRegistry (org.apache.camel.impl.JndiRegistry)608 SSLContextParameters (org.apache.camel.util.jsse.SSLContextParameters)19 HttpUrlRewrite (org.apache.camel.component.urlrewrite.HttpUrlRewrite)18 KeyStoreParameters (org.apache.camel.util.jsse.KeyStoreParameters)17 DeadLetterChannelBuilder (org.apache.camel.builder.DeadLetterChannelBuilder)16 Properties (java.util.Properties)15 Test (org.junit.Test)14 TrustManagersParameters (org.apache.camel.util.jsse.TrustManagersParameters)13 ArrayList (java.util.ArrayList)11 KeyManagersParameters (org.apache.camel.util.jsse.KeyManagersParameters)11 EmbeddedDatabaseBuilder (org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder)11 File (java.io.File)10 RouteBuilder (org.apache.camel.builder.RouteBuilder)8 ExchangeCookieHandler (org.apache.camel.http.common.cookie.ExchangeCookieHandler)8 InstanceCookieHandler (org.apache.camel.http.common.cookie.InstanceCookieHandler)8 CamelContext (org.apache.camel.CamelContext)6 MockEndpoint (org.apache.camel.component.mock.MockEndpoint)6 BookCatalog (org.apache.camel.component.routebox.demo.BookCatalog)5 SimpleRouteBuilder (org.apache.camel.component.routebox.demo.SimpleRouteBuilder)5 DefaultCamelContext (org.apache.camel.impl.DefaultCamelContext)5