Good day,

I am trying to use only spring config routes to consume message by
JMSCorrelationID.
I tried the following option, but it only works when I hardcode the param. 
Is there any workaround to consume and send response to the client by only
using spring config without injecting a bean?

Hardcoded working sample:
<from
uri="restlet:http://localhost:8077/poc/reply/{id}?restletMethods=post,get"/>
<pollEnrich uri="activemq:test.www?selector=JMSCorrelationID %3D '1234'"/>

NOT Working:
<from
uri="restlet:http://localhost:8077/poc/reply/{id}?restletMethods=post,get"/>
<setHeader headerName="variable"><simple>${header.id}</simple></setHeader>
<pollEnrich uri="activemq:test.www?selector=JMSCorrelationID %3D
'variable'"/>

Thanks 
Peter

--
View this message in context: 
http://camel.465427.n5.nabble.com/pollEnrich-consumer-with-selector-tp4939908p4939908.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to