We need to be careful about the properties propagated between Camel service routes and the internal bus routes that connect services in SwitchYard. For example, error handling properties set on an exchange in a user's Camel service route should not be mapped into the Camel bus route within SY by ExchangeMapper. See forum reference for additional info.
ExchangeMapper.mapCamelToSwitchYard() :
https://github.com/jboss-switchyard/components/blob/master/camel/camel-switchyard/src/main/java/org/switchyard/component/camel/ExchangeMapper.java#L52
Suggest a two-part approach to this problem:
1) Add startsWith("Camel") to the list of reserved properties not copied in ExchangeMapper (possibly add this to ContextPropertyUtil).
2) Allow routing implementations to be configured to allow certain "Camel*" properties to flow through as an override (e.g. CamelFileName).
|