Versions Compared

Key

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

...

For example you could use POJO Consuming to write a bean like this

Info
title@MessageDriven @Consume requires camel-spring

Using the @MessageDriven @Consume annotations requires camel-spring that uses the org.apache.camel.spring.CamelBeanPostProcessor to perform the setup for this consumer and the needed bean bindings.

Tip
title@MessageDriven is @deprecated

The @MessageDriven has been replaced with @Consume in Camel 1.5.0 or newer. Its now marked as @deprecated and will be removed in Camel 2.0.

Code Block
public class Foo {

    @MessageDriven@Consume(uri = "activemq:my.queue")
    public void doSomething(String body) {
		// process the inbound message here
    }

}

...