messageHandler procedure
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Handles incoming JMS and error messages.
Syntax
|
Parameters
- message
- The message.
- messageConsumer
- The Message Consumer object that contains this message handler. The application can use the Message Consumer object to get context information about the message (for example, the session handle to the session that received that message) and the context (for example, the session handler).
- reply
- A handle to the reply message, if any. The application can reply to the message
automatically without having to extract the
reply tofields. The application can set thereplyparameter with a reply message, which is automatically sent to theJMSReplyTodestination of the message. If the setReplyAutoDelete procedure(true)Message Consumer procedure is called, the reply message is automatically deleted after being sent.
Applies to
Message objects
Notes
- The message handler is written by an application and must be registered with a Message Consumer object.
- When a message is received, the message handler is called automatically so the application can process the message.
See also
createMessageConsumer procedure, deleteConsumer procedure, messageHandler procedure, waitForMessages procedure
For more information see the Message Consumer objects, the Consuming messages, the Terminating the Message Consumer object, and the Creating a message handler process.