Hi,

Thanks Claus for your response.

The method signature is 

public void test(Object o) {
                        
                System.out.println("Argument: " +o.getClass());
                
}

Regards,
Marcin


Claus Ibsen-2 wrote:
> 
> Well you gotta show the method signature to us, as we cant see your
> problem when you dont show that.
> And sometimes you have to converter/adapt the message payload yourself
> if the components store data in complex types.
> 
> 
> 
> On Wed, Jun 9, 2010 at 3:26 PM, marcin80 <[email protected]> wrote:
>>
>> Hi,
>>
>> I'm using Camel v.2.2. I have a problem with splitter. This code
>>
>> Splitter's input data come from jdbc component - query returns two
>> table's
>> columns.
>>
>> <camel:split>
>>                <camel:simple>${in.body}</camel:simple>
>>                <camel:to uri="bean:testBean?method=test"/>
>> </camel:split>
>>
>> doesn't works as I expect. Method test of my bean is invoked with
>> String's
>> argument type.
>>
>> Following code works fine and method test of my bean is invoked with
>> HashMap's argument type.
>>
>> <camel:split>
>>                <camel:el>${in.body}</camel:el>
>>                <camel:to uri="bean:testBean?method=test"/>
>> </camel:split>
>>
>> works fine.
>>
>> What am I doing wrong?
>>
>> Cheers,
>> Marcin
>> --
>> View this message in context:
>> http://old.nabble.com/Camel-splitter-tp28830386p28830386.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Claus Ibsen
> Apache Camel Committer
> 
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Camel-splitter-tp28830386p28841112.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to