Try this:

<intercept>

<to uri="seda:trace" />

</intercept>

<route>

<from uri="seda:trace" />

<bean ref="marsTraceProcessor" method="traceExchange"/>

<log message="Persisting to Trace to Database"/>

<to uri="jpa://com.vzw.fp.mars.entities.MarsTracerEntity"/>

</route>


That should do the trick.

Regards,
Raúl.

On 16 December 2011 19:24, ebinsingh <[email protected]>wrote:

> Awesome. This is clear now, but the sad part is am not able isolate the
> interception Processor with the route processor. As I want to send an
> Entity
> to the JPA using a Processor, I need to set it as the Exchange Body which
> again would mess up the other route.
>
> From [1] I guess that setting the bean's return type as void would not mess
> the Exchange.
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Intercept-issue-need-help-tp5080816p5081145.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to