P6Cmb

Platform 6 common message bus (CMB) Producer is a generalized common message bus request/response component to allow other event triggers to invoke requests on the CMB.

For more information about the Camel Exchange: https://camel.apache.org/exchange.html.

.to("p6cmb://scripts?platform6.request.action=execute&id=TransferHandler")

The destination service’s name forms the first part of the URL followed by any specific common message headers required by the receiving service.

The Camel Exchange In message is also mapped to the common message delivered to the named service:

  • Any In message body is mapped to an attachment called body.
  • All In message headers are mapped to common message headers.

The response from the common message exchange is also re-mapped to the Out message in the Camel Exchange.

Note

WrappedFile message bodies are NOT mapped to a common message bus attachment by default as this can cause out of memory errors as the message is sent, received and/or processed. WrappedFile message bodies are the type generated by the file2 component for example.

To force this component to map WrappedFile message bodies, add the following parameter to the URI:

  • allowWrappedFileContent=true

Example:

.to("p6cmb://scripts?allowWrappedFileContent=true&platform6.request.action=execute&id=TransferHandler")