The afterBegin method notifies a session Bean instance that a new
transaction has started, and that the subsequent business methods on the
instance will be invoked in the context of the transaction.
The afterCompletion method notifies a session Bean instance that a
transaction commit protocol has completed, and tells the instance
whether the transaction has been committed or rolled back.
The EJBException exception is thrown by an enterprise Bean instance to
its container to report that the invoked business method or callback method
could not be completed because of an unexpected error (e.g.
The NoSuchEntityException exception is thrown by an enterprise Bean
instance to its container to report that the invoked business method
or callback method could not be completed because of the underlying
entity was removed from the database.
The RemoveException exception is thrown at an attempt to remove
an EJB object when the enterprise Bean or the container does not allow
the EJB object to be removed.