camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Goyal, Arpit" <>
Subject Dynamic generation of URI in enricher
Date Thu, 26 Sep 2013 14:59:36 GMT
Hi All,

I would like to use enricher along with dynamic URI (See sample XML below), where the URI
is my custom endpoint. I know we can't do the same in camel:to and we would need to use it
camel:recipientList (

<camelContext id="test" streamCache="true">


                                <from uri="file:///tmp/inbox"/>

                                <setHeader header="id">

                                                <xpath resultType="java.lang.String">//result/@id</xpath>


                                <enrich uri="mySql:operation=querySync&query=SELECT
* FROM MyTable WHERE id = '${}'" strategyRef="query-service"/>

                                <to uri="file:///tmp/outbox/>



Or I need to handle in my custom endpoint?

Thanks & Regards,


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message