Hi Diana,
From the
EJB specification, page 356:
If a stateless session bean instance starts a transaction in a business method, it must commit the transaction before the business method returns. The Container must detect the case in which a transaction was started, but not completed, in the business method, and handle it as follows:
Log this as an application error to alert the system administrator.Roll back the started transactionDiscard the instance of the session beanThrow the java.rmi.RemoteException to the client if the client is a remote client, or throw the javax.ejb.EJBException if the client is a local client.
From this, I believe the Container would enforce rule 2.
Regards, Andrew
[ September 23, 2003: Message edited by: Andrew Monkhouse ]