Hi
Ah there is a bit of confusing as its called method in the expressions.
But its a bean when you use the builders.
from("direct:in").split(bean("splitter", "splitBody")).
to("direct:test");
On Mon, Aug 3, 2009 at 5:42 PM, Bak Attila<[email protected]> wrote:
>
> Thanks for the fast reply.
> Unfortunately i cannot find the "method...." you suggest... Can you help?
> Or would the following be equivalent to the previous?:
>
> from("file:src/data?noop=true").bean(new
> IncomingMessageValidator()).to("direct:in");
>
> from("direct:in").split().method("splitter", "splitBody").
> to("direct:test");
>
> Thanks
> attila
>
>
> Bak Attila wrote:
>>
>> Hi,
>>
>> I am trying to cascade a bean and a splitter like (java DSL):
>>
>> from("file:src/data?noop=true").bean(new
>> IncomingMessageValidator()).
>> split().method("splitter", "splitBody").
>> to("direct:test");
>>
>> It complains that method to(String) is undefined for object. What am i
>> doing wrong?
>>
>> Thanks,
>> attila
>>
>
> --
> View this message in context:
> http://www.nabble.com/Cascading-bean-and-splitter-tp24792299p24793035.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Claus Ibsen
Apache Camel Committer
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus