Versions Compared

Key

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

...

Code Block
outMessage.properties = [foo:"hello", someList:[1, 2, 3]]

Maintaining state across requests

Its often handy to keep track of state across requests. There is a variable called 'bindings' which you can use to maintain state...

Wiki Markup
{snippet:id=groovy|lang=xml|url=http://cvs.servicemix.codehaus.org/*checkout*/servicemix/base/src/test/resources/org/servicemix/components/cache/example.xml?rev=HEAD}

Generating output

Groovy provides various mechanism for generating the output (whether it is the result of a service or a transformation). Which mechnism you use depends on your use case and personal preference.

...