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.

If a message is modified before it is sent by a publisher adapter, all subscribers will receive the modified message. If a message is modified before it is received by a subscriber adapter, only that subscriber adapter will receive the modified message.

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.

Building the User Callout Java Library

The user callout Java library is built with TIBCO Adapter SDK and TIBCO Rendezvous software. For compiler requirements and instructions, see the TIBCO Adapter for SDK Programmer's Guide.

To build the user callout Java library, complete the following tasks:

  1. Adding a User Library in a Project
  2. Adding a Java Package and Class
  3. Using the alterMsgPub() and alterMsgSub() Functions
  4. Using the adbPreCommit Function
  5. Exporting the JAR File
  6. Replacing the Original JAR File