0

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 ...
javanoob
  • 243
  • 1
  • 10

1 Answers1

0

I could probably do this with InOnly pattern, but am still not sure.

javanoob
  • 243
  • 1
  • 10