I am facing a typical and strange issue. I am trying to send a message from one queue(QUEUE1) to another (QUEUEU2). After reading the message,ie., after it gets consumed.,it should be deleted from the queue.But its not getting deleted and it will be in queue itself. After so many messages were to sent to QUEUE2 queue depth is getting icreased and its getting slow and forcefully we are shutting down the weblogic server and stopping queue to delete all the messages from the queue. Please help me out in deleting the message as soon as it gets consumed.
When a message is consumed succesfully, it is automatically removed from the queue and nothing else needs be done. So there's something happening in between that causes an erroneous situation.
To help, will you elaborate a bit more? Specifically
1. Do you have a consumer that reads from queue1 and as part of the processing moves the message to queue2?
2. Or is queue2 an 'error queue' to which weblogic automatically moves messages from queue1?
This can be configured on weblogic and the server moves the message to the error queue when they have expired on queue1. This typically happens when messages are not consumed because there arent active listeners or because message consumption threw an exception and the message was returned to the queue.
I am also facing the same problem in WebLogic Server. The message consumed successfully, but still lying on the queue.
Is there any way to configure in weblogic server that the message redelivery count more than one, then want to redirect to Error Queue (another queue in the same application server)? Can you please suggest?