• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Message Driven Bean Topic

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 489
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic