Incorrect message type used in SwitchYard producer when composite-level interface is
specified
----------------------------------------------------------------------------------------------
Key: SWITCHYARD-448
URL:
https://issues.jboss.org/browse/SWITCHYARD-448
Project: SwitchYard
Issue Type: Bug
Components: component-camel
Affects Versions: 0.2
Reporter: Keith Babo
Fix For: 0.3
The Camel component is not using the appropriate message type from the service reference
in SwitchYardProducer if a composite-level interface is supplied. For example, take
something like this:
<service name="CarIntake" promote="CarIntake">
<interface.java
interface="org.switchyard.workshop.lab2.FileIntake"/>
<binding.camel xmlns="urn:switchyard-component-camel:config:1.0"
configURI="file:///tmp/input"/>
</service>
When the producer code creates a SwitchYard exchange, it should be using the message types
declared in FileIntake.java. It shouldn't be using the Java type here - just use the
result of ServiceOperation.getInputType() from the ServiceInterface. What's happening
now is that the producer is taking the class name from the Camel message body and setting
that as the type.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira