Hi,
Thanks, that worked:
DeadLetterChannelBuilder deadLetterChannelBuilder = new
DeadLetterChannelBuilder('mock:error')
deadLetterChannelBuilder.setUseOriginalMessage(true)
context.adapt(ExtendedCamelContext.class).errorHandlerFactory =
deadLetterChannelBuilder
> Op 19 mrt. 2020, om 12:45 heeft Claus Ibsen <[email protected]> het
> volgende geschreven:
>
> Hi
>
> adapt to extended camel context and there is a setter for error handler
> factory
>
> On Thu, Mar 19, 2020 at 12:25 PM Remco Schoen <[email protected]> wrote:
>>
>> Hi,
>>
>> I was rewriting one of my tests to Camel 3.1 and it seems that I no longer
>> can set the error handler on a camelContext:
>>
>> @Before
>> void init() {
>> DeadLetterChannelBuilder deadLetterChannelBuilder = new
>> DeadLetterChannelBuilder('mock:error')
>> context.setErrorHandlerBuilder(deadLetterChannelBuilder)
>>
>> context.start()
>> }
>>
>> Is something similar still possible in Camel 3.1?
>> With Spring DSL this is still possible, but I would like to avoid that in my
>> tests.
>>
>> Kind regards,
>>
>> Remco Schoen
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2