You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ephemeris Lappis <ep...@gmail.com> on 2024/04/17 14:35:52 UTC
Camel JMS component / Dynamic destination on consumer
Hello.
I'm looking for some way to set a JMS consumer on a queue whose name
depends on the context (in my real case, a system property).
For a producer, the route (we use blueprint DSL) can be something like that :
<toD uri="jms:queue-${sys.XXX}?connectionFactory=#myCF" />
But I don't see any way for the "from" uri...
Any idea ?
Thanks for your help.
Regards.
Re: Camel JMS component / Dynamic destination on consumer
Posted by Ephemeris Lappis <ep...@gmail.com>.
Hello Claus.
Indeed, this is a perfect way to get the dynamic queue name : {{sys:XXX}}.
Thanks a lot !
Regards.
Le mer. 17 avr. 2024 à 17:04, Claus Ibsen <cl...@gmail.com> a écrit :
>
> Hi
>
> You can use {{ }} syntax that can refer to JVM sys properties also.
>
> The toD example you have is using simple language and its not the same as
> {{ }} but they can both use sys/env variables etc.
>
>
> On Wed, Apr 17, 2024 at 4:36 PM Ephemeris Lappis <ep...@gmail.com>
> wrote:
>
> > Hello.
> >
> > I'm looking for some way to set a JMS consumer on a queue whose name
> > depends on the context (in my real case, a system property).
> >
> > For a producer, the route (we use blueprint DSL) can be something like
> > that :
> >
> > <toD uri="jms:queue-${sys.XXX}?connectionFactory=#myCF" />
> >
> > But I don't see any way for the "from" uri...
> >
> > Any idea ?
> >
> > Thanks for your help.
> >
> > Regards.
> >
>
>
> --
> Claus Ibsen
> -----------------
> @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
Re: Camel JMS component / Dynamic destination on consumer
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
You can use {{ }} syntax that can refer to JVM sys properties also.
The toD example you have is using simple language and its not the same as
{{ }} but they can both use sys/env variables etc.
On Wed, Apr 17, 2024 at 4:36 PM Ephemeris Lappis <ep...@gmail.com>
wrote:
> Hello.
>
> I'm looking for some way to set a JMS consumer on a queue whose name
> depends on the context (in my real case, a system property).
>
> For a producer, the route (we use blueprint DSL) can be something like
> that :
>
> <toD uri="jms:queue-${sys.XXX}?connectionFactory=#myCF" />
>
> But I don't see any way for the "from" uri...
>
> Any idea ?
>
> Thanks for your help.
>
> Regards.
>
--
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2