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.이 콘텐츠는 선택한 언어로 제공되지 않습니다.
2.13. Performance and Optimization
Avoid unnecessary message copying 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
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=true
on any of the error handlers or on theonException
element. - You do not use the
getOriginalMessage
method anywhere in your Java application code.