Interview Question: What is Message Driven Bean?

By: Ash  

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 )

Explain the new Features of JDBC 2.0 Core API?

Interview Question: Can i map more than one table in a CMP?

How to define an Abstract class?

Interview Question: What is lazy loading?

What is the difference between jsp:include page and @ include file?

Interview Question: What are the call back methods in Entity bean?

Interview Question: What is deployment descriptor?

Interview Question: How many EJB Objects are created for a Bean?

Interview Question: What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

Interview Question: What is the difference between sessioncontext and entitycontext?

Interview Question: Why does EJB needs two interfaces(Home and Remote Interface)?

Interview Question: What is the difference between ejbCreate() and ejbPostCreate?

Interview Question: What is difference between EJB 1.1 and EJB 2.0?

Explain the Encapsulation principle.

Interview Question: Is Decorator an EJB design pattern?

Latest Articles (in Interview)

Comment on this tutorial