zbendhiba commented on issue #2101:
URL: https://github.com/apache/camel-quarkus/issues/2101#issuecomment-938728864


   > The `transferExchange` is a bad design as it enforces to use Camel on both 
sides, and gives the impression that you can transfer the current state of the 
exchange to some cache / storage, and then retrieve it later, and then 
_continue_ routing it.
   > 
   > Its for historical use we had it, and when Java objects wasn't yet a big 
big security vulnerability and warning.
   > 
   > Instead what is a more general concept would be to have an API for 
serializing / de-serializing a Camel message with its body and header (eg user 
payload) and not to include internal exchange state that may be stored as 
exchange properties and whatnot.
   > 
   > Such a API / contract can also be used by EIPs and components to store 
user payload more easily. And then we can have implementations for common 
types, such as you refer to with json/xml payloads. And for binary then 
avro/protobuf/what not
   
   @davsclaus  Maybe you should comment on this issue : 
https://issues.apache.org/jira/browse/CAMEL-16805. I'm not sure if I understood 
everything. Should we build something new, or should we change the 
`transferExchange` used in the HazelcastSedaProducer ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to