Is it possible to use a bean that is not bound to any exchange and just triggers some kind of service start method in the middle of a Camel interception?
interceptFrom("a").bean(service, "method")
with method looking like
public void method() {
//just do something that has nothing to do with the exchange
}
For Camel 2.12.2
Exceptions I get are:
Caused by: org.apache.camel.InvalidPayloadException: No body available of type: java.util.function.Function but has value: ...
And another in the same Stacktrace:
Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type converter available to convert from type: ... to the required type: java.util.function.Function with value ...
我可能可以使用InOnly模式执行此操作,但仍不确定。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.