Search in sources :

Example 86 with JndiRegistry

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

Example 87 with JndiRegistry

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

Example 88 with JndiRegistry

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;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) CamelContext(org.apache.camel.CamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) BookCatalog(org.apache.camel.component.routebox.demo.BookCatalog) SimpleRouteBuilder(org.apache.camel.component.routebox.demo.SimpleRouteBuilder)

Example 89 with JndiRegistry

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

Example 90 with JndiRegistry

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;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) CamelContext(org.apache.camel.CamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) BookCatalog(org.apache.camel.component.routebox.demo.BookCatalog) SimpleRouteBuilder(org.apache.camel.component.routebox.demo.SimpleRouteBuilder)

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