Which version of camel you are using ?

Also expression seems to be missing from your Java DSL as well as XML one
which will split the message into pieces.

Hope you have already looked at these URLs
===========================
http://camel.apache.org/splitter.html
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/SplitterTest.java?view=markup

On Tue, Feb 28, 2017 at 5:27 AM, Erol <[email protected]> wrote:

> Hello
>
> I'm writing my routes in XML. Currently, I have a route in DSL
>
> from("direct:operation-1")
>             .to("bean:ExportOrdersComponent")
>             .split().message()
>             .to("bean:RenderOrderComponent")
>             .to("bean:SaveOrderComponent")
>
> How should I convert this to XML? I tried
>
> <route>
>     <from uri="direct:operation-1" />
>     <to uri="bean:ExportOrdersComponent" />
>     <split message="true">
>         <to uri="bean:RenderOrderComponent" />
>         <to uri="bean:SaveOrderComponent" />
>     </split>
> </route>
>
> But I get an error
>
> Failed to create route operation-1 at: >>> Split[null ->...
>
> Can somebody please help me correctly build XML route?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.
> com/Split-by-message-in-XML-tp5794534.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
- Ravi

*[ View My Youtube Channel ] <https://www.youtube.com/c/RavindraGodbole>*

Phone: +91 *98 509 760 91*

Reply via email to