camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: DeadLetterErrorHandler queue not created
Date Sun, 14 Jul 2013 21:03:05 GMT
The queues are created lazy (when the first message is enqueued), but I
think the issue is:

You configured:

<beans:bean id="wecaDeadLetterErrorHandler" ...

<camelContext ... errorHandlerRef="DeadLetterErrorHandler">

You should have configured:

<camelContext ... errorHandlerRef="wecaDeadLetterErrorHandler">

Or is it a copy / past / modify issue?

Best,
Christian
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Sun, Jul 14, 2013 at 10:32 PM, shin938 <shalom938@gmail.com> wrote:

> I configured a DeadLetterErrorHandler like that:
>
> <beans:bean id="wecaDeadLetterErrorHandler"
> class="org.apache.camel.builder.DeadLetterChannelBuilder">
>         <beans:property name="deadLetterUri"
> value="activemq:queue:wecaDLQ"/>
>         <beans:property name="redeliveryPolicy"
> ref="wecaRedeliveryPolicyConfig"/>
>         <beans:property name="useOriginalMessage" value="true"/>
>     </beans:bean>
>
>     <beans:bean id="wecaRedeliveryPolicyConfig"
> class="org.apache.camel.processor.RedeliveryPolicy">
>         <beans:property name="maximumRedeliveries"
> value="${weca.camel.redeliveryAttempts}"/>
>         <beans:property name="redeliveryDelay" value="5000"/>
>         <beans:property name="useExponentialBackOff" value="true"/>
>     </beans:bean>
>
> and referenced it in my routes :
> <camelContext id="OfficeRouterContext"
>                   trace="${camel.context.trace}"
>                   depends-on="activemq,officeBundleActivator"
>                   errorHandlerRef="DeadLetterErrorHandler">
>
>
>
> the redeliveries work,
> but the DLQ is not created, or at least I can't see it anywhere. I check in
> activemq web console where i usually see all queues including ActiveMQ.DLQ,
> I tried activemq:queue:wecaDLQ and jms:queue:wecaDLQ
> but I can't see it anywhere.
> and the Messages Enqueued  count and Messages Dequeued count on activemq
> web
> console increase by one.
> any idea?
>
> Thank you
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/DeadLetterErrorHandler-queue-not-created-tp5735624.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message