• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Quick Question on MDB

 
Kumar Ala
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A---The MDB is a JMS Publish-Subscribe consumer that may lose some messages if the EJB server goes down.
B--- The MDB is a JMS Publish-Subscribe consumer that may lose its topic subscription if the EJB server goes down.

Which statetment is correct and how..?
 
mimi mang
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A is correct.
the subscription is just a configuration that will not be lost no matter server goes down or not
But the message may be lost if the subsciption is not a durable subscription.
 
Kumar Ala
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mimi,
I have not worked on MDB. Can you explain more about how topic subscription will not be lost incase of EJB server goes down. Where does it actually stored etc.

Thanks

 
prathap venkata naga yelugula
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I too Vote for "A" Option.
cheers!
Prathap.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you do not take the effort to post the entire question, you may get incorrect answers. The question's XML fragment has the following



The subscription durability is - not durable. But if it were, consumers that were disconnected when the topic was alive and had unexpired messages that were not consumed, would have the relevant messages delivered to them when they reconnect.

Telling us the options without the question makes it impossible to give you the right answer
 
Kumar Ala
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Deepak
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic