As for transforming the reply, what about something like this:
from( INBOUND_ENDPOINT_URI ).process( myTransformationProcessor ).pipeline(
OUTBOUND_ENDPOINT_URI, "direct:outProcessor").
from("direct:outProcessor").process( outTransformationProcessor );
in outTransformationProcessor you probably need to get and modify out
message (not in)
mario_horny wrote:
>
> Hi all,
>
> I'm currently facing the same questions 1 and 3 that Marc had.
>
> First, I want to transform a response message within the router using a
> custom processor. For processing an incoming request an implementation of
> a route in the configure() method of a RouteBuilder might look like
>
> from( INBOUND_ENDPOINT_URI ).process( myTransformationProcessor ).to(
> OUTBOUND_ENDPOINT_URI).
>
> This transforms the request before it is routed to the target endpoint.
> But how can I transform the reply (via a seperate route?) ?
>
> Finally, how can I throw a custom fault in case of an error within the
> process() method of my custom processor ?
>
> Many thanks in advance,
> Mario
>
>
--
View this message in context:
http://www.nabble.com/Response-processor---transformer-tp15596535s22882p20480855.html
Sent from the Camel - Users mailing list archive at Nabble.com.