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 » IBM MQ Java / JMS » publish without any subscriber

Post new topic  Reply to topic
 publish without any subscriber « View previous topic :: View next topic » 
Author Message
techno
PostPosted: Fri Jan 07, 2005 7:50 pm    Post subject: publish without any subscriber Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

What would happen to the message published on a topic, when there is no subscriber subscribed to it. Does that message get removed immediately?

Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat Jan 08, 2005 5:34 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If there are no current or durable subscribers to a topic, I believe the message is discarded.

What should get done with it, otherwise?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
techno
PostPosted: Sat Jan 08, 2005 6:50 am    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

How do we synchronize first time, so that we do not loose any messages?


Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat Jan 08, 2005 12:49 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Don't start the publisher until you have registered subscribers.

You don't have to have the subscribers RUNNING, just registered.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JLRowe
PostPosted: Sun Jan 09, 2005 2:09 pm    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

You can specify that a publication is retained, the broker keeps the last publication on the topic, clients can then subscribe and receive the last publication or they can grab the last publication whenever they need it.
Back to top
View user's profile Send private message Send e-mail
techno
PostPosted: Sun Jan 09, 2005 4:07 pm    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

Could you let me know how to specify/code it?

Thanks
Back to top
View user's profile Send private message
JLRowe
PostPosted: Mon Jan 10, 2005 5:25 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

Check out this explanation:

http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp?topic=/com.ibm.etools.mft.doc/aq13030_.htm

A good analogy is if you imagine a football match, if the score is published on a retained topic then clients can subscribe half way through the match and get the latest score, of course if a goal is scored then a new publication occurs and all subscribers get the new score message immediately.

I believe this feature is not available with the MQ pub/sub, only with message broker.
Back to top
View user's profile Send private message Send e-mail
techno
PostPosted: Mon Jan 10, 2005 9:38 am    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

I am using MQ's Pub/Sub support pac (ma0c).

Where are the topic registrations stored? Which Queue? I didn't see them anywhere. When I used DumpBroker.class utility, I don't get old topics... I am not clear on how and what is happening. I guess I am not seeing them when there are no pending messages in JMS.D queue (susbscriber queue)

This is what I have observed:

Did susbscribe to t1:
Did publish on t1
Reecievd all the emssages. Did dump broker:
I can see t1 in the topic list.


Did susbscribe to t2:
Did publish on t2
Reecievd all the emssages. Did dump broker:
I can see only t2 in the topic list. I lost t1

When I have any pending messages to be subscribed on t1, I can see both t1 and t2.



Pls help in understanding above stuff.
Thanks
Back to top
View user's profile Send private message
techno
PostPosted: Wed Jan 12, 2005 10:27 pm    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

could somebody answer above questions.


thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » publish without any subscriber
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.