camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angelo.rlcosta" <angelo.rlco...@gmail.com>
Subject Re: Possibility of jdbc component when performing a select to return a map
Date Tue, 17 Mar 2015 15:53:18 GMT
Hello again Antoine,

The previous groovy expression worked well. Thanks.

How can i pass camel property inside groovy context. 

For example if i define a property 
<setProperty propertyName="currentCode">
            	<simple>100</simple>
            </setProperty>

How can i use this property inside groovy something like
<setProperty propertyName="errorFound">
                <groovy>request.body.get("100")</groovy>
            </setProperty>

So instead of request.body.get("100") i want something like
request.body.get(${property.currentCode})

Thanks in advance,




--
View this message in context: http://camel.465427.n5.nabble.com/Possibility-of-jdbc-component-when-performing-a-select-to-return-a-map-tp5764228p5764287.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message