Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Ce contenu n'est pas disponible dans la langue sélectionnée.
2.14. Performance and Optimization
Avoid unnecessary message copying Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
You can avoid making an unnecessary copy of the original message, by setting the
allowUseOriginalMessage option to false on the CamelContext object. For example, in Blueprint XML you can set this option as follows:
<camelContext xmlns="http://camel.apache.org/schema/blueprint"
allowUseOriginalMessage="false">
...
</camelContext>
<camelContext xmlns="http://camel.apache.org/schema/blueprint"
allowUseOriginalMessage="false">
...
</camelContext>
You can safely set
allowUseOriginalMessage to false, if the following conditions are satisfied:
- You do not set
useOriginalMessage=trueon any of the error handlers or on theonExceptionelement. - You do not use the
getOriginalMessagemethod anywhere in your Java application code.