Try OpenEdge Now
skip to main content
Messaging and ESB Administration : OpenEdge Adapter for SonicMQ Administration : Maximizing performance : Message reuse
Message reuse
The creation of an ABL message is relatively expensive. The publisher (or sender) of a message should reuse a Message object whenever possible. The message can be cleared for reuse by calling clearBody and clearProperties. The message body of some message types is automatically cleared when new data is set. (For more information, see OpenEdge Development: Messaging and ESB.
The application that consumes messages can reuse them by calling the setReuseMessage message consumer method. If setReuseMessage is called, the message consumer reuses the same Message object for all the messages it receives, provided that the message was not deleted by the application.