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 javax.ejb package contains the Enterprise JavaBeans classes
and interfaces that define the contracts between the enterprise bean
and its clients and between the enterprise bean and the EJB container.
The MessageDrivenContext interface provides access to the runtime
message-driven context that the container provides for a message-driven
enterprise Bean instance.
The NoSuchEntityException exception is thrown by an Entity 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.