Versions Compared

Key

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

...

Code Block
public class Bar {

    public void doSomething(Exchange exchange) {
      // process the exchange
      exchange.getIn().setBody("Bye World");
   }

For example you could use POJO Consuming to write a method bean like this (showing also a feature in Camel, the @MessageDriven annotation):

Info
title@MessageDriven requires camel-spring

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

...