有没有办法将onCompletion上下文范围的“处理程序”添加到 Camel 上下文?Camel onCompletion 文档展示了如何使用 Spring XML DSL 来完成此操作,但我一直无法找到以编程方式完成此操作的方法。
// define a global on completion that is invoked when the exchange is complete
onCompletion().to("log:global").to("mock:sync");
Run Code Online (Sandbox Code Playgroud)