You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Bing Lu <mf...@yahoo.com.INVALID> on 2022/09/06 14:16:17 UTC
dynamic naming dlq
Hi, is there a way to dynamic name the dlq name based on routeid? I currently have it as the following which means every error is going to the same dlq. thanks
errorHandler(deadLetterChannel("activemq:queue:sth.dlq"))
Re: dynamic naming dlq
Posted by Bing Lu <mf...@yahoo.com.INVALID>.
thank you very much, sir.
On Tuesday, September 6, 2022 at 10:36:13 AM EDT, Claus Ibsen <cl...@gmail.com> wrote:
Hi
No but you can use a direct route, where you use toD to send to dynamic
queue,
something ala:
deadLetterChannel("direct:to-dlq")
from direct:to-dlq
toD("activemq:myerror-at-${routeId}")
On Tue, Sep 6, 2022 at 4:16 PM Bing Lu <mf...@yahoo.com.invalid> wrote:
> Hi, is there a way to dynamic name the dlq name based on routeid? I
> currently have it as the following which means every error is going to the
> same dlq. thanks
> errorHandler(deadLetterChannel("activemq:queue:sth.dlq"))
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
Re: dynamic naming dlq
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
No but you can use a direct route, where you use toD to send to dynamic
queue,
something ala:
deadLetterChannel("direct:to-dlq")
from direct:to-dlq
toD("activemq:myerror-at-${routeId}")
On Tue, Sep 6, 2022 at 4:16 PM Bing Lu <mf...@yahoo.com.invalid> wrote:
> Hi, is there a way to dynamic name the dlq name based on routeid? I
> currently have it as the following which means every error is going to the
> same dlq. thanks
> errorHandler(deadLetterChannel("activemq:queue:sth.dlq"))
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2