THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
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
...