> On 25. sep. 2015, at 12.00, Claus Ibsen <claus.ib...@gmail.com> wrote:
> 
> Maybe an earlier callback can be added to CamelContextConfiguration?
> 
> But instead of using that callback you can use some spring annotation
> that creates this component and name it wmq. Then Camel lookup in the
> spring bean registry for "wmq" when it wants to use the component with
> that name, and uses your bean.
> 

For now i’m using a workaround by routing my deadLetterChannel to a 
“direct:deadLetter” route, which then routes the message to the real deadLetter 
queue:

from(directBackoutQueue)
.wireTap("log:"+"dk.bec"+"?level=WARN&showAll=true")
.to(backoutQueue);

and then in my main route:

from(…..)
.errorHandler(deadLetterChannel(directBackoutQueue).maximumRedeliveries(0))

I’m not sure if the deadLetterChannel resolving endpoints at route 
configuration time is intentional - it makes sense that a deadLetterChannel 
must exist - but it seems kinda pointless if it is that easily defeated.

As for the earlier callback in CamelContextConfiguration, this seems like the 
correct solution.

/J

Reply via email to