Versions Compared

Key

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

...

Warning
titleSending exchanges

When acting as a Consumer (i.e. creating and sending an exchange into the bus), this Endpoint is currently limited to sending InOnly requests. This limitation is solved for versions >= 3.2.2

Tip
titleTips when creating Script Helpers
  • When defining your own helper, if you do not extend the ScriptExchangeHelper then you will need to change the type in the Groovy script to ScriptHelper for the exchangeHelper propery
  • if you extend the ScriptExchangeHelper then you have to call the super.setScriptExchangeProcessorEndpoint() method in order to set the private member there too, otherwise you will experience Null Pointer Exceptions
  • to use your own helper, you have to use the Spring <bean /> element in the xbean.xml as shown in the above example because the script:exchangeHelper is fixed to use the ScriptExchangeHelper class
  • as Groovy is a dynamic language, there is no need to upcast the exchange helper property in the Groovy script: even though the ScriptHelper type is specified in the script, Groovy will be able to find the methods in the sub class by introspecting the object