Reputation: 683
Me and my colleague want to develop a camel component that not only takes care of the connectivity, but also converts the standard xml and / or json formats into the necessary message format for the target system.
Where should we implement that? In our opinion, we have two options:
Is there a standard or is it up to the developer himself how many helper classes he defines for his camel component?
Upvotes: 0
Views: 81
Reputation: 55525
There is no enforced standard. Both options are valid and it depends a bit. The type converters are more flexible and allows you to do these convertions elsewhere than only when sending via the producer.
For example some components that support industry standards like HL7 provide type converters to offer that kind of flexibility.
And some other components where these data formats of the target system are very special/specific do not use type converters but do it directly in the producer.
Upvotes: 1