Manage the lifecycle of an ABL - JMS message
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
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:
- Create a message by running one of the following procedures in the Session object: createBytesMessage procedure, createDataSetMessage procedure, createHeaderMessage procedure, createMapMessage procedure, createMultipartMessage procedure, createStreamMessage procedure, createTempTableMessage procedure, or createXMLMessage procedure.
- Populate a message by running
set...andwrite...for header and data information. - Send the message to a destination.
- 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:
- Receive a message in a Message Consumer object.
- Run
get...andread...to extract header information and body data. - Run the deleteMessage procedure to delete the message.