Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Message Driven Bean Home

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HF EJB page 456 says MDBs don't have a home. But on page 453 it says:
"If you have, say, the WelcomeBean subscribed to the NewCustomer topic, when a message is published to that topic, the Container will choose <i>only one</i> bean from the WelcomeBean pool to get the message. Remember, the Container keeps a separate pool of beans for each home (and every deployed bean type gets its own home)."
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
That must be a typo (I haven't verified the cite): Message Driven Beans are not accessible for clients - and thus they can never have neither a local nor a remote view. It really doesn't make sense, since one of the core purposes of MDBs are the asynchronous nature (thus the only way a client can "interact" with a MDB is through a message-destination; queue or topic).
[ November 30, 2003: Message edited by: Nicky Moelholm ]
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Wally Flint:
HF EJB page 456 says MDBs don't have a home. But on page 453 it says:
"If you have, say, the WelcomeBean subscribed to the NewCustomer topic, when a message is published to that topic, the Container will choose <i>only one</i> bean from the WelcomeBean pool to get the message. Remember, the Container keeps a separate pool of beans for each home (and every deployed bean type gets its own home)."


Now it's my turn to say oops...
Well, this sentence is true:
Remember, the Container keeps a separate pool of beans for each home (and every deployed bean type gets its own home)."
But it has nothing to do with MDB's!!
So, you're right... it makes no sense there. Just pretend that everything in that paragraph is *technically* correct, but that the last sentence was put there purely to add to your confusion.
MDBs, as you realized, have no home. Do not ask me what I was thinking (smoking?) when I wrote that.
Thanks for finding this!!
cheers,
Kathy
 
My name is Inigo Montoya, you killed my father, prepare to read a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic