Release 10.1A: OpenEdge Development:
Messaging and ESB

> ## Message life cycle

> A 4GL-JMS message has a life cycle for sending and a life cycle for receiving.

> | To manage the sending life cycle of a 4GL-JMS message:

> 1. 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.

> 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.

> | To manage the receiving life cycle of a 4GL-JMS message:

> 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.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095