Bean component is setting payload type as an array in client proxy
------------------------------------------------------------------
Key: SWITCHYARD-267
URL:
https://issues.jboss.org/browse/SWITCHYARD-267
Project: SwitchYard
Issue Type: Bug
Components: component-bean
Reporter: Keith Babo
Assignee: Tom Fennelly
Fix For: 0.1
ClientProxyBean is setting the message content to Object[] args. IIRC, we are not
allowing multiple arg invocations. In any case, we should at least add a conditional that
checks for an array length of 1 to set the actual object as the message content.
Something like this:
{noformat}
if (args.length == 1) {
exchangeIn.send(exchangeIn.createMessage().setContent(args[0]));
} else {
exchangeIn.send(exchangeIn.createMessage().setContent(args));
}
{noformat}
Note that there are two instances of this in ClientProxyBean.invoke() (one for in-out and
one for in-only).
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira