Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can a message be read from a queue without it being removed so that a subsequent application can access it?

0
Posted

Can a message be read from a queue without it being removed so that a subsequent application can access it?

0

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 is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123