Hi Norberto, You can find a sample configuration which uses Endpoint Template for a similar issue at[1].
[1] https://stackoverflow.com/questions/38465378/wso2-value-dynamically-injected-to-the-endpoint Thanks, Manorama On Mon, Sep 18, 2017 at 1:41 PM, Sudharma Subasinghe <[email protected]> wrote: > 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 <[email protected]> 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 < >> [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://.......&rabbitmq.queue.routing. >>> key={key}&rabbitmq...”/> >>> <address uri="rabbitmq://.......&rabbitmq.queue.routing. >>> key={ctx:key}&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 >> >> > > > -- > Sudharma Subasinghe, > Software Engineer, > WSO2 Inc. > Email: [email protected] <[email protected]> > Mobile : +94 710 565 157 <%2B94%20718%20210%20200> > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Manorama Perera Software Engineer WSO2, Inc.; http://wso2.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
