EJB 1.1 says in chapter 12.2.2:

The Bean Provider can rely on the Container to perform the following tasks
when catching a non-application
exception:
* The transaction in which the bean method participated will be rolled back.
* No other method will be invoked on an instance that threw a
non-application exception.

This means that the Bean Provider does not have to perform any cleanup
actions before throwing a
non-application exception. It is the Container that is responsible for the
cleanup.


what does it mean in the following case:

SLSB (tx required) called from a non-tx client calls entity bean and calls
some setters on the entity bean.
The the SLSB dooms the tx (EJBException).

Will the container cleanup the enitity bean too? Is it necessary at all to
clean up the entity bean? Maybe because the container uses the DB in
exclusive mode.

And what will happen with the entity bean if the SLSB dooms the tx by
calling setRollBackOnly and not throwing an EJBException?

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to