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" />
                <log message="ESBServiceOne - message received: ${body}" />
                <to uri="switchyard://ESBServiceTwo" />
                <log message="ESBServiceTwo - Test message received: ${body}" />

Route One Logs
12:00:18,124 INFO  [route21] (http- ESBServiceOne
- m
essage received: ID-CG02B459-63296-1476196508552-14-12
12:00:18,139 INFO  [route21] (http- 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";>
                <from uri="switchyard://ESBServiceThree" />
                <log message="ESBServiceThree - message received: ${body}" />
                <to uri="switchyard://ESBServiceFour" />
                <log message="ESBServiceFour - Test message received: ${body}" 

Route Two Logs
11:59:11,596 INFO  [route22] (http-
ESBServiceThree -
 message received: ID-CG02B459-63296-1476196508552-14-4
11:59:11,608 INFO  [route22] (http-
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: 
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to