ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Set expiry time for durable pub/sub Topics

Post new topic  Reply to topic
 Set expiry time for durable pub/sub Topics « View previous topic :: View next topic » 
Author Message
Tristan23
PostPosted: Wed May 25, 2011 6:40 am    Post subject: Set expiry time for durable pub/sub Topics Reply with quote

Newbie

Joined: 25 May 2011
Posts: 9

Hi,

I just created a new "Topic" using MQ Explorer.

Then I wrote some pub/sub JMS code:
...
MQTopicSubscriber subscriber = (MQTopicSubscriber) session.createDurableSubscriber(topic, "mySub");
...

So far this works great.

But then I was asking myself the question: "What happens if a durable subscriber shuts down and never comes back up again?". The messages will be kept forever in the Queue.

Or is there a way to automatically purge messages from a Topic-Queue if they are not read for a too long time?

cheers,
T.
Back to top
View user's profile Send private message
zpat
PostPosted: Wed May 25, 2011 7:08 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

If the messages have an MQMD.expiry value set (by whatever puts them) they can auto-delete themselves.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed May 25, 2011 9:20 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

zpat wrote:
If the messages have an MQMD.expiry value set (by whatever puts them) they can auto-delete themselves.

However this is counter pattern for a durable subscriber and the durable pub/sub model. What you should do is find the subscription by looking at the topic and remove it administratively. Then you might need to run some maintenance program in the pub/sub area.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Set expiry time for durable pub/sub Topics
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.