I have to call "third party" camel routes from my route (actually the third party routes were written by the guy at the next cubicle).
These camel routes go through CXF endpoints so they contain code like:
MessageContentsList messageContentsList = (MessageContentsList) exchange.getUnitOfWork().getOriginalInMessage().getBody();
and
String userId = (String) messageContentsList.get(2);
The third party route works when I start from that route. But if I start from my bigger route (which contains the third party route as a sub-route), the third party route is broken, and it's easy to see why (the exchange now looks different).
What are the best ways to be able to utilize the third party routes in my route?
Preferably without changing the third party code.
But if you are aware of a good way to do it by changing the third party code I would also be interested in seeing it as well.
Thanks.