Search in sources :

Example 16 with DeadLetterChannelBuilder

use of org.apache.camel.builder.DeadLetterChannelBuilder in project camel by apache.

the class ContextScopedOnExceptionErrorHandlerRefIssueTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = super.createRegistry();
    jndi.bind("myDLC", new DeadLetterChannelBuilder("mock:dead"));
    return jndi;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) DeadLetterChannelBuilder(org.apache.camel.builder.DeadLetterChannelBuilder)

Example 17 with DeadLetterChannelBuilder

use of org.apache.camel.builder.DeadLetterChannelBuilder in project camel by apache.

the class ContextScopedOnExceptionErrorHandlerRefIssueTwoRoutesTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = super.createRegistry();
    jndi.bind("myDLC", new DeadLetterChannelBuilder("mock:dead"));
    return jndi;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) DeadLetterChannelBuilder(org.apache.camel.builder.DeadLetterChannelBuilder)

Example 18 with DeadLetterChannelBuilder

use of org.apache.camel.builder.DeadLetterChannelBuilder in project camel by apache.

the class ContextScopedOnExceptionMultipleRouteBuildersTest method createCamelContext.

@Override
protected CamelContext createCamelContext() throws Exception {
    CamelContext context = super.createCamelContext();
    context.setErrorHandlerBuilder(new DeadLetterChannelBuilder("mock:dead"));
    return context;
}
Also used : CamelContext(org.apache.camel.CamelContext) DeadLetterChannelBuilder(org.apache.camel.builder.DeadLetterChannelBuilder)

Example 19 with DeadLetterChannelBuilder

use of org.apache.camel.builder.DeadLetterChannelBuilder in project camel by apache.

the class ContextScopedOnExceptionNotHandledRouteScopedErrorHandlerRefIssueTwoRoutesTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = super.createRegistry();
    jndi.bind("myDLC", new DeadLetterChannelBuilder("mock:dead"));
    return jndi;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) DeadLetterChannelBuilder(org.apache.camel.builder.DeadLetterChannelBuilder)

Example 20 with DeadLetterChannelBuilder

use of org.apache.camel.builder.DeadLetterChannelBuilder in project camel by apache.

the class ContextScopedOnExceptionRouteScopedErrorHandlerRefIssueTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = super.createRegistry();
    jndi.bind("myDLC", new DeadLetterChannelBuilder("mock:dead"));
    return jndi;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) DeadLetterChannelBuilder(org.apache.camel.builder.DeadLetterChannelBuilder)

Aggregations

DeadLetterChannelBuilder (org.apache.camel.builder.DeadLetterChannelBuilder)20 JndiRegistry (org.apache.camel.impl.JndiRegistry)16 CamelContext (org.apache.camel.CamelContext)2 Exchange (org.apache.camel.Exchange)1 Processor (org.apache.camel.Processor)1 DefaultErrorHandlerBuilder (org.apache.camel.builder.DefaultErrorHandlerBuilder)1 RouteBuilder (org.apache.camel.builder.RouteBuilder)1 DefaultCamelContext (org.apache.camel.impl.DefaultCamelContext)1 RedeliveryPolicy (org.apache.camel.processor.RedeliveryPolicy)1 Test (org.junit.Test)1