Versions Compared

Key

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

...

Or the Exchange example. Notice that the return type must be void when there is only a single parameter:

Code Block
public class Bar {

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

...