Using the User Callout Java Library
The user callout Java library is used to transform a message that the adapter publishes into a structure that you want to publish. The user callout Java library can be customized to apply limited transformations to outgoing and incoming messages.
For example, a publisher adapter can modify a message by adding a field, or publish an empty message if a certain criteria is met. A subscriber adapter can modify a message so that the message can be written to the database by using a filter, or have the subject name inserted into the table.
Before a message is sent or received, the adapter checks the callout library. If the callout library has not been modified, the message is passed back to the adapter unchanged. If the user callout Java library has been modified, the message is passed back to the adapter with the modification. After receiving a modified message from the callout library, an adapter configuration sends or consumes the message like any other message.