Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: update class name in correlation ID generation bean to match example: MySimpleIdGenerator

...

Code Block
xml
xml
   <bean id="myCorrelationIdGenerator" class="com.mycompany.MyIdGeneratorMySimpleIdGenerator"/>

Example using Groovy

In this example we have an Exchange that has a User object stored in the in header. This User object has methods to get some user information. We want to use Groovy to inject an expression that extracts and concats the fullname of the user into the fullName parameter.

...