Posted On: Feb 22, 2018
On Occurrence of Application exception: EJB return the exception to client as it is intercepted. The method EJBContext().setRollBackOnly() specify that whether the transaction it should be rolled or not.
On Occurrence of System Exception: Here EJB first intercepts the transaction, rollback it and then initiate the clean-up tasks. It converts the exception into RemoteException before sending to the client.
Never Miss an Articles from us.
EJB stands for Enterprise java bean is a server-side software that is used to construct the module of enterprise software...
Entity Bean: The object that is planned with the database is referred to an entity bean. It is used to execute..
CMP Entity bean: It is defined as Container Managed Persistence. It is the complex type of bean and very effective for the develope..