File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deleting JMS Messages from the QUEUE

 
vijaya lakshmi
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 489
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 117
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?


 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic