camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Kalukiewicz" <roman.kalukiew...@gmail.com>
Subject Re: Splitter
Date Mon, 21 Apr 2008 12:29:00 GMT
>  >> from("direct:start).multicast().to("direct:dataProcessor","direct:infoProcessor");
>  >>  > from("direct:dataProcessor").setBody().el("in.body.data")...
>  >>  > from("direct:infoProcessor").setBody().el("in.body.info")...
>  >>  >
>  >>  > Roman
>  >>  >
>  >>  >
>  >>
>  >>
>  >> Hi,
>  >>
>  >>   I use something like:
>  >>
>  >>  <multicast>
>  >>         <splitter>
>  >>                 <ognl>request.body.dto</ognl>
>  >>                  <to uri="direct:dtoProcessor"/>
>  >>         </splitter>
>  >>         <splitter>
>  >>                  <ognl>request.body.info</ognl>
>  >>                  <to uri="direct:infoProcessor"/>
>  >>         </splitter>
>  >>  </multicast>
>  >>
>  >>   Is the correct approach?
>  >
>  > Basically it is correct. The question is if dto and info fields are
>  > collection/arrays or not.
>  > If they are, then it is perfectly OK. If they are not, then the
>  > presence of splitter is misleading here (but works anyway).
>  >
>  > Roman
>  >
>  >
>
>
>    Are simply DTO object.
>
>    I use xml configuration. Is the only way i found to do this :(

Well.. I'm not sure if we have this setBody() construct in XML
already, so if you want to have XML maybe it is the simplest thing you
can do for now.

Another thing is that <setBody> could be useful in XML ;)

Anyway - your solution works and it is the ultimate goal for you I think ;)

Roman

Mime
View raw message