Can a message be read from a queue without it being removed so that a subsequent application can access it?
JCommBridge provides methods that control the behavior of message processing such as whether or not a message is destroyed once it has been read. The CBRequester and CBService classes each provide the same three methods of message retrieval: “receive()”, “browseFirst()”, and “browseNext()”. The “receive()” method is the destructive read. The message is removed from the queue, unless done under commitment control and a subsequent “backout()” call is made. Calling either of the browse methods returns a copy of the selected message while leaving the original message on the queue. It’s important to understand that all three methods apply any declared filtering using message_id and correlation_id. This is implied in any references to the browse methods in the description that follows. More information on this topic is specified in the JCommBridge Concepts Guide.
Related Questions
- What Sun ONE Message Queue versions are supported? Which versions of Sun ONE Message Queue are supported with which versions of Sun ONE Application Server?
- Does Message Sniffer read the headers inserted by an another application, for example white-listed addresses?
- Can a message be read from a queue without it being removed so that a subsequent application can access it?