Hi Norberto,

You can try endpoint template[1] to define parameter values, and then refer
those values in uri using '$' sign.

[1] https://docs.wso2.com/display/ESB500/Endpoint+Template

Thanks
Sudharma

On Mon, Sep 18, 2017 at 1:25 PM, Vinod Kavinda <vi...@wso2.com> wrote:

> 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 <
> norbe...@memoryvox.com> 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
>> Dev@wso2.org
>> 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
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sudharma Subasinghe,
Software Engineer,
WSO2 Inc.
Email: sudhar...@wso2.com <hasi...@wso2.com>
Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to