I have a strange issue that am not able to solve.
Appreciate your help.

I am trying to intercept and persist certain Header data to the Database
(Please see the below Route config).

I see the below log in my logger, which am not able to understand why. I am
not setting the "com.vzw.fp.mars.entities.MarsTracerEntity" to the body of
any exchange object, but still the log statement '<log message="PARSED data
is  ${body}"/>' displays the below log saying that the parsed data is the
JPA Entity I am using to persist Route headers to Database.

*LOG:*
2011-12-16 11:38:01,341 INFO  [Camel (camel-1) thread #1 -
file://C:\camelProject\data\inbox\mars] route2            - PARSED data is 
com.vzw.fp.mars.entities.MarsTracerEntity@d91987


<intercept>
<bean ref="marsTraceProcessor" method="traceExchange"/>
<log message="Persisting to Trace to Database"/>
<to uri="jpa://com.vzw.fp.mars.entities.MarsTracerEntity"/>  
</intercept>

<route>
<from uri="file:C:\\camelProject\\data\\inbox\\mars"/>
<process ref="myProcessor"/>
<to uri="direct:marsDataProcessingQueue"/>
</route>

<route>
<from uri="direct:marsDataProcessingQueue"/>
<log message="processing PARSED messeges  ${in.header.batchSize}  file name
${in.header.fileName}" loggingLevel="INFO"/>
<choice>
<when>
<simple>${in.header.batchSize}==2000</simple>
<log message="PARSED data is  ${body}"/>
<log message="processing batch of size == 2000" loggingLevel="INFO"/>
<multicast stopOnException="true">
<to uri="jms:queue:test_request_1"/>
<to
uri="file:C:\\camelProject\\data\\outbox\\mars?fileName=${in.header.fileName}"/>
</multicast>
</when>



--
View this message in context: 
http://camel.465427.n5.nabble.com/Intercept-issue-need-help-tp5080816p5080816.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to