0
キャメルのインターセプトの途中で何らかのサービス開始メソッドを起動するだけで、どのエクスチェンジにもバインドされていないBeanを使用できますか?キャメルについてキャメルからバインディング/ハンドリングなしでBeanメソッドを呼び出す
public void method() {
//just do something that has nothing to do with the exchange
}
ように私が得る2.12.2
例外を探して
方法interceptFrom("a").bean(service, "method")
は以下のとおりです。
Caused by: org.apache.camel.InvalidPayloadException: No body available of type: java.util.function.Function but has value: ...
と同じスタックトレース内の別:
Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type converter available to convert from type: ... to the required type: java.util.function.Function with value ...
この質問を入力するよりも速くテストできたと思います。 – rmlan
私はこれを傍受してテストし、すべてを破った。実際には傍受は質問の一部でなければならない – javanoob
"それはすべてを壊した" - それはどういう意味ですか? – rmlan