<route>
      <from uri="direct:body"/>
      <split>
        <method bean="mySplitterBean" method="splitBody"/>
        <to uri="mock:result"/>
      </split>
    </route>

Best,
Christian

On Thu, Oct 4, 2012 at 8:49 PM, Castyn <eric.ben...@gmail.com> wrote:

> I have created a custom bean that takes in some data as the body of a
> message, and converts it to a java List.  I am using the spring DSL for my
> routes and don't know how I can convert the following to the spring
> version:
>
> from("direct:body")
>         .split().method("mySplitterBean", "splitBody")
>         .to("mock:result");
>
> Can anyone tell me how this can be accomplished via spring instead of a
> routebuilder?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Custom-Bean-for-use-with-a-Splitter-tp5720566.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--

Reply via email to