• Post Reply Bookmark Topic Watch Topic
  • New Topic

durable Vs non-durable Topic subscription

 
kri shan
Ranch Hand
Posts: 1481
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between durable and non-durable Topic subscriptions?
I read some links regarding this, but i am not able to find the exact difference.
 
Heonkoo Lee
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By using durable subscription the subscriber does not have to be running all the time to get messages, whereas using default mode it gets only messages published to the topic while it is running.

Regards,
[ April 03, 2005: Message edited by: Heonkoo Lee ]
 
kri shan
Ranch Hand
Posts: 1481
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By using durable subscription the subscriber does not have to be running all the time to get messages, whereas using default mode it gets only messages published to the topic while it is running.

'whereas using default mode it gets only messages published to the topic while it is running' i am not getting meaning of this statement.

For any JMS message receiver(Topic/Queue) should not up always.(Asynchronous )
 
Heonkoo Lee
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry to make it unclear. Let me quote from HFE.

Topics use a publish and subscribe mode, where a producer sends a message, and anyone who's listening as a consumer will get a copy of the message. Works just like a mailing list. If any one subscriber doesn't get the message, the producer doesn't care.

A topic subscriber can request a durable subscription if he wants to make sure that he sees all messages, including the ones that accumulated while he was offline. That will almost always be your choice, because you'll want to get all the messages. Think about it...a non-durable topic subscription would be like you must be home at the time your magazine is delivered., or you simply won't see it. (page 450)
 
kri shan
Ranch Hand
Posts: 1481
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per my understanding,
Durable Topic Subscription means subscriber should subscribe the message.
Non-Durable Topic Subscription means subscriber need not subscribe the message.
 
Heonkoo Lee
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't subscribe New York Times, how could you expect them to deliver the paper to you?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!