I created AQ in oracle and wrote 2 JMS users in Java to listen on the queue. I sometimes noticed that if I create a message in the queue; the number of pending messages from the queue is greater than the number indicated in the queue. This means that some messages are consumed twice.
I created a queue with the property: - multiple_consumers => FALSE
And JMS users work in CLIENT_ACKNOWLEDGE mode
Please help me find out the possible reasons for this behavior and its solution. That way, I can replicate the problem and solve the above problem and make sure that the number of attached messages is equal to the number of messages deleted if several JMS users are listening on the same AQ.
Dinesh sachdev 108
source share