Search in sources :

Example 26 with JndiRegistry

use of org.apache.camel.impl.JndiRegistry in project camel by apache.

the class FileConsumerFileFilterTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = super.createRegistry();
    jndi.bind("myFilter", new MyFileFilter<Object>());
    return jndi;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry)

Example 27 with JndiRegistry

use of org.apache.camel.impl.JndiRegistry in project camel by apache.

the class FromRestOptionsTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = super.createRegistry();
    jndi.bind("dummy-rest", new DummyRestConsumerFactory());
    return jndi;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry)

Example 28 with JndiRegistry

use of org.apache.camel.impl.JndiRegistry in project camel by apache.

the class RefComponentTest method testRef.

public void testRef() throws Exception {
    MockEndpoint mock = getMockEndpoint("mock:result");
    mock.expectedBodiesReceived("Hello World");
    PropertyPlaceholderDelegateRegistry delegate = (PropertyPlaceholderDelegateRegistry) context.getRegistry();
    JndiRegistry jndi = (JndiRegistry) delegate.getRegistry();
    bindToRegistry(jndi);
    template.sendBody("ref:foo", "Hello World");
    assertMockEndpointsSatisfied();
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) MockEndpoint(org.apache.camel.component.mock.MockEndpoint) PropertyPlaceholderDelegateRegistry(org.apache.camel.impl.PropertyPlaceholderDelegateRegistry)

Example 29 with JndiRegistry

use of org.apache.camel.impl.JndiRegistry in project camel by apache.

the class FromRestGetEmbeddedRouteTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = super.createRegistry();
    jndi.bind("dummy-test", new DummyRestConsumerFactory());
    return jndi;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry)

Example 30 with JndiRegistry

use of org.apache.camel.impl.JndiRegistry in project camel by apache.

the class FromRestDuplicateTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = super.createRegistry();
    jndi.bind("dummy-rest", new DummyRestConsumerFactory());
    return jndi;
}
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