my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes Deleting JMS Messages from the QUEUE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Deleting JMS Messages from the QUEUE" Watch "Deleting JMS Messages from the QUEUE" New topic
Author

Deleting JMS Messages from the QUEUE

vijaya lakshmi
Greenhorn

Joined: Oct 31, 2003
Posts: 7
Hi,

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.

Thanks,
Vijaya.
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

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.

ram.
Shankar sanjay
Ranch Hand

Joined: Sep 14, 2009
Posts: 117
Hi,

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?


 
GeeCON Prague 2014
 
subject: Deleting JMS Messages from the QUEUE