Interview Question: What is Message Driven Bean?

By: Ash Viewed: 153270 times  Printer Friendly Format    


Question:What is Message Driven Bean?

Answer:

An MDB is essentially a message consumer that can listen to a message destination or a message endpoint and gets activated when a message arrives. By design, MDBs are anonymous in nature and hence cannot be directly invoked by a client. The only way to invoke an MDB is to send a message to the destination or endpoint to which it is listening. As MDBs are stateless in nature and are not related to any specific client, they can be pooled for concurrent processing of messages.

 

 

 

 


Most Viewed Articles (in Interview )

Latest Articles (in Interview)

Comment on this tutorial