Reading Messages without subscribing
1 posts in topic
Flat View  Flat View

Posted By:   vanitha_thadvai
Posted On:   Friday, January 30, 2009 07:05 AM

I want to read the messages on particular durable without subscribing or destroying the topic. To background of why i need is given below

Task: I want to read the pending messages on a particular topic if particular reciever(subsciber) went down. This can be done using ADMIN API. In mean time I want to read the messages on the topic at that time and save those messages to some file or database.

Any body has any idea how can i do this.


Re: Reading Messages without subscribing

Posted By:   Anonymous  
Posted On:   Monday, April 6, 2009 10:27 AM


1. Without subcribe you cannot receive messge from the topic.

2. Use Client Acknowledge instead of using Auto Acknowledge. The receiver/subscriber will acknowledge the queue/topic, once the message has been received, after that the queue/topic will release the message from there else the message will be in queue/topic. If the receiver/subscriber went down, the queue/topic will maintain the messge. So no need to worry about persistence.
About | Sitemap | Contact