Sunday, November 2, 2014

EJB



EJB - server side component that runs on the application server and container provide transaction management.

Types - Entity, session and MDB.

Types of session bean - Stateless and Stateful session beans.

Life cycle - setEntityContaxt() -> create() (ejbCreate() + ejbPostCreate()) -> remove() (ejbRemove())

Connection Pooling - no need to query database every time a client calls EJB

Bean managed persistence - disable the automatic container manged persistence and use manual queries to update database.

Serialization - in case of RMI, we can transfer EJB objects from one JVM to another and so we need to use serialized objects.

Java Beans VS EJB - client side vs server side beans.

MDB - Message Driven Bean is used by JMS queue. onMessage()

No comments:

Post a Comment