3. The application calls the startReceiveMessagesprocedure in the Session object with the message handle, the name of a destination (a topic name for Pub/Sub), and the Message Consumer handle as input parameters.
4. The application executes a WAIT–FOR statement (or calls a waitForMessages procedure) and processes incoming messages and other ABL events.
5. The application deletes the messages after the application finishes using them.