Hi All, i would like to understand how streamCache works. i have created two routes,one route with streamCache enabled and another without streamCache.Iam not able to find the difference.Iam assuming log component will also be considered as a camel process.
Route One <?xml version="1.0" encoding="ASCII"?> <routes xmlns="http://camel.apache.org/schema/spring"> <route streamCache="true"> <from uri="switchyard://ESBServiceOne" /> <setBody> <simple>${exchangeId}</simple> </setBody> <log message="ESBServiceOne - message received: ${body}" /> <to uri="switchyard://ESBServiceTwo" /> <log message="ESBServiceTwo - Test message received: ${body}" /> </route> </routes> Route One Logs 12:00:18,124 INFO [route21] (http-127.0.0.1/127.0.0.1:8080-1) ESBServiceOne - m essage received: ID-CG02B459-63296-1476196508552-14-12 12:00:18,139 INFO [route21] (http-127.0.0.1/127.0.0.1:8080-1) ESBServiceTwo - T est message received: ID-CG02B459-63296-1476196508552-14-12 Route 2 : <?xml version="1.0" encoding="ASCII"?> <routes xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="switchyard://ESBServiceThree" /> <setBody> <simple>${exchangeId}</simple> </setBody> <log message="ESBServiceThree - message received: ${body}" /> <to uri="switchyard://ESBServiceFour" /> <log message="ESBServiceFour - Test message received: ${body}" /> </route> </routes> Route Two Logs 11:59:11,596 INFO [route22] (http-127.0.0.1/127.0.0.1:8080-1) ESBServiceThree - message received: ID-CG02B459-63296-1476196508552-14-4 11:59:11,608 INFO [route22] (http-127.0.0.1/127.0.0.1:8080-1) ESBServiceFour - Test message received: ID-CG02B459-63296-1476196508552-14-4 Can you please explain why is the log getting printed for the second time in the route where stream cache is not enabled. -- View this message in context: http://camel.465427.n5.nabble.com/Understanding-streamCache-in-camel-tp5788727.html Sent from the Camel - Users mailing list archive at Nabble.com.