Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Message Driven Bean Topic  RSS feed

 
Stephen Ferg
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If there are two MDBs (on two servers) A and B listen to the same topic. When the topic comes, if MDB A consumes it but MDB B does not for some reason.

1) in this case, is the message still on Topic server ? (since MDB B has not done yet).

2) If the answer to above question is yes, then when we restart the server for MDB A, will the message be re delivered to MDB A ? (note; MDB A has consumed it)

3) when we restart server for MDB B, will the message be re-delivered to MDB B ?

thanks.
 
ramprasad madathil
Ranch Hand
Posts: 489
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in this case, is the message still on Topic server ? (since MDB B has not done yet).


Yes if the message was a persistent one which in turn is a message property set by the sender.



If the answer to above question is yes, then when we restart the server for MDB A, will the message be re delivered to MDB A ? (note; MDB A has consumed it)

No, MDB A has consumed it

when we restart server for MDB B, will the message be re-delivered to MDB B ?

Yes, if MDB B is a Durable subscriber specified by the following property in it's ejb-jar.xml


cheers,
ram.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!