An ABL–JMS message has a lifecycle for sending and a lifecycle for receiving.

Manage the sending lifecycle of an ABL - JMS message

To manage the sending lifecycle of an ABL–JMS message, follow these steps:

  1. Create a message by running one of the following procedures in the Session object:
  2. Populate a message by running set... and write... for header and data information.
  3. Send the message to a destination.
  4. Run the deleteMessage procedure to delete the message.

Manage the receiving lifecycle of an ABL - JMS message

To manage the receiving lifecycle of an ABL–JMS message, follow these steps:

  1. Receive a message in a Message Consumer object.
  2. Run get... and read... to extract header information and body data.
  3. Run the deleteMessage procedure to delete the message.