• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

MDB Durable subscription

 
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
EJB spec Page 314, topic 15.4 states that-
Durable topic subscriptions, as well as queues, ensure that messages are not missed even if the EJB
server is not running.

How is this possible? If the server is not running, then even the JMS message service is down. Then who will
receive the message sent by the message producer/publisher? In HFE, page 450, says that-
Topic subscriber can request a durable subscription if he wants to make sure that he sees all messages
including the one that accumulated while he was offline

I think this meaning of durable subscription makes sense than in EJB spec. Can some body clarify this?
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the message producer uses "store and forward", the message producer is able to spool the messages to the local store until the MOM (your JMS server) is reactivated (server is started again).
Another thing that can be down is the consumer; the specific EJB server containing the consumer can be down, and the MOM persist the messages until the consumer is up again.
More information can be found from Internet or from "Mastering EJB 2", page 204.

Originally posted by Rashmi Tambe:
Hi All,
EJB spec Page 314, topic 15.4 states that-
Durable topic subscriptions, as well as queues, ensure that messages are not missed even if the EJB
server is not running.

How is this possible? If the server is not running, then even the JMS message service is down. Then who will
receive the message sent by the message producer/publisher? In HFE, page 450, says that-
Topic subscriber can request a durable subscription if he wants to make sure that he sees all messages
including the one that accumulated while he was offline

I think this meaning of durable subscription makes sense than in EJB spec. Can some body clarify this?

 
Rashmi Tambe
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Janne!
 
I'm just a poor boy, I need no sympathy, because I'm easy come, easy go, little high, little low, little ad
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic