This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes HFE , message-driven question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "HFE , message-driven question" Watch "HFE , message-driven question" New topic
Author

HFE , message-driven question

Poobhathy Kannan
Ranch Hand

Joined: May 26, 2004
Posts: 94
What�s true about message-driven beans? (Choose all that apply)
A.A message-driven bean has a home interface but no component interface.
B.A client never knows a message-driven bean�s identity.
C.A Client sees a message-driven bean as JavaMail message consumer.
D.The lifetime of a message-driven bean is controlled by the container.

Answer
B,D

My View: There are no clients for message-driven beans, then how can we say "A client never knows a message-driven bean�s identity" ?

Pleas explain


http://learnertobeginner.blogspot.com/
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

MDB instances are the consumers of the JMS messages. So the applications which send those messages are the client. An MDB never knows the client directly but only through the JMS broker; Nor do the client knows who will consume the messages they produce, they just send the message to broker. This is how loose coupling is acheived in Message oriented systems.


Groovy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HFE , message-driven question
 
Similar Threads
Mock question on MDB by Ashik
tough questions on beans and others
Mock exam questions on MDB (2)
Message-Driven Bean TransactionAttribute
BMT not propogated to invoked beans