• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • 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.
 
Of course, I found a very beautiful couch. Definitely. And this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic