EJB Interview Questions and Answers
Question: What are the different types of EJB?Answer:Mainly three types of EJB:
Types of EJB: (1) Entity Bean: It represents an entity which is mapped with database or we can say it makes OR object Relational mapping with Database. Entity bean typically represent table in RDBMS and each instance represent row in the table. Two types of entity bean:
(2) Session bean: Session bean is responsible for developing business logic it makes the client server relationship so session beans exist till there is a session exist between client and server, it doesn't contain persistent business concept. Types of session bean:
(3) Message Driven Beans: These beans are work as a listener for messaging services like JMS. |
Is it helpful?
Yes
No
Most helpful rated by users:
- What are the different kinds of enterprise beans?
- What is Entity Bean?
- What is Session Bean?
- What is the difference between Container-Managed Persistent (CMP) bean and Bean-Managed Persistent(BMP)?
- What are the methods of Entity Bean?