This content has been marked as final.
Show 2 replies
-
1. Re: Multiple Transformations On Camel Route's Contract
kcbabo Sep 10, 2013 12:58 PM (in response to pzl_mz)This should work. If the service provided by Component 2 is something like this:
public interface Component2 { void abc(Foo foo); void xyz(Bar bar); }
And Component1 uses the following as a reference interface:
public interface Component2Ref { void abc(MyFoo myFoo); void xyz(MyBar bar); }
You can invoke each operation from the Camel route using the operation parameter:
from("switchyard://Component1") .to("switchyard://Component2Ref?operationName=abc") .to("switchyard://Component2Ref?operationName=xyz");
This would trigger transforms of Foo -> MyFoo and Bar -> MyBar.
Is this what you're after? If not, please post the Camel route, switchyard.xml, and the relevant interfaces you are using.
-
2. Re: Multiple Transformations On Camel Route's Contract
pzl_mz Sep 11, 2013 3:07 AM (in response to kcbabo)Adding the two methods to the Component2Ref's interface did the trick, thanks!