Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You don't need to use the @MessageDriven annotation; as you could use the Camel DSL to route to the beans method

Using the DSL to invoke the bean method

Here is another example which does not use POJO Consuming annotations but instead uses the DSL to route messages to the bean method

Code Block

public class Foo {
    public void doSomething(@Header('JMSCorrelationID') String correlationID, @Body String body) {
		// process the inbound message here
    }

}

e.g. a route could look like

...