• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

durable Vs non-durable Topic subscription

 
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you don't subscribe New York Times, how could you expect them to deliver the paper to you?
 
I'm gonna teach you a lesson! Start by looking at this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic