Hi,

Yeah, logging the message also means change the underlying stream message to 
re-readable, same effect as add streamCache="true" to the camelContext
-------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-7-16, at 下午11:20, gumba wrote:

> I solved the problem with this code, I logged the message before use path on
> it.
> 
> <camelContext id="camelProcess"
> xmlns="http://camel.apache.org/schema/spring";>
>            <route>
>                       <from
> uri="jbi:endpoint:http://servicemix.apache.org/samples/bridge/pipeline/endpoint"/>
>               <to uri="log:org.apache.servicemix.example?level=INFO"/>
>               <choice>
>                       <when>
>                               <xpath>//method='startProcess'</xpath>
>                               <to uri="xslt:bridge.xslt"/>
>                               <to uri="bean:initiateProcess"/>
>                               
>                       </when>
>                       <otherwise>
>                               <to uri="file:/Users/paundejr/..."/>
>                       </otherwise>
>               </choice>
>            </route>
>      </camelContext>
> 
> -----
> Gumba
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/problem-in-content-based-routing-and-xpath-evaluation-SMX4-3-tp4638543p5713899.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to