Hi,
Can you try using "get-property('sendToThisQueue')" other than using
the context. Found this blog post[1] by a wso2 developer that may useful.

[1] -
http://wso2tech.blogspot.com/2015/06/wso2-esb-dynamic-jms-endpoint.html

Regards,
Vinod

On Mon, Sep 18, 2017 at 1:13 PM, Norberto Fernandes <[email protected]>
wrote:

> Hi Developers,
>
> Could you please let me know if it is possible to pass a variable into a
> rabbitmq endpoint?
>
> I would like to set the routing key dynamically. So I was trying to use a
> property from the context and define the routing key based on that
> property. But I could not make it work.
>
> I tried :
>
> <address uri="rabbitmq://.......&amp;rabbitmq.queue.routing.
> key={key}&amp;rabbitmq...”/>
> <address uri="rabbitmq://.......&amp;rabbitmq.queue.routing.
> key={ctx:key}&amp;rabbitmq...”/>
>
> Where key is the context property where I have the desired value of the
> routing key.
>
> Thanks in advance.
>
> Regards,
> Norberto
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to