[ 
https://issues.apache.org/jira/browse/CAMEL-7679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14092847#comment-14092847
 ] 

Willem Jiang commented on CAMEL-7679:
-------------------------------------

You can work around this issue by converting the message body into an Object 
Array and setup the message header of "CamelBeanMultiParameterArray" to be 
true, just like this.
{code}
from("cxfrs://http://0.0.0.0:8080?resourceClasses=org.apache.camel.bug.Service&loggingFeatureEnabled=true";)
                                        .to("log:cxfrs8080").process(new 
Processor() {

                        @Override
                        public void process(Exchange exchange) throws Exception 
{
                            List<Object> parameter = 
exchange.getIn().getBody(List.class);
                            exchange.getIn().setBody(parameter.toArray());
                            
exchange.getIn().setHeader("CamelBeanMultiParameterArray", true);
                        }
                    }).bean(org.apache.camel.bug.ServiceUtil.class, "invoke");
{code}
I will update the camel bean method to leverage the camel converter to get the 
Object array by default.

> [cxfrs] Second argument is null when consumer invoke the bean with two 
> arguments
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-7679
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7679
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.13.2
>            Reporter: Alexey Markevich
>            Assignee: Willem Jiang
>         Attachments: camel-cxfrs-put-two-args.zip
>
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to