Versions Compared

Key

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

...

ATTENTION: This idea was develop during debugging another problem and so I forgot that I actually added the method getChannel() to the ScriptExchangeProcessorEndpoint which without this idea is not going to fly. So, until this method is added there is no way to make this fly. Also this Endpoint is fixed to be a Provider and so it could never send anything else than an InOnly method anyhow, sorry.
Please check out this JIRA issue: https://issues.apache.org/activemq/browse/SM-1112Image Added for more info.

In order to create Message Exchanges one needs the Delivery Channel to obtain the Message Exchange Factory to create them. This is not possible by default but can be easily added using a customer Script Helper class. The only thing to do is to create a class that implements the Script Helper interface and use the Script Exchange Processor Endpoint instance to obtain the Delivery Channel from. Now you can either provide the Delivery Channel as is or you can create convenience method to create Message Exchanges for example. This is how a customer Script Helper class would look like:

...