Output ouput is 1-30 in database whereas i think it shuld be 1-20 after that TransactionNotSupportedException
Joined: Mar 10, 2001
Page 196 (marked as 192) of ejb 1.1 specs mentions that the client's view and the container's action as follows : Client's View Receives RemoteExcep-tion. If the client executes in a transaction, the client�s transaction is not marked for rollback, and client can continue its work. Container's action with the NotSup-ported, Never, and Supports attributes. error. Discard instance. Throw RemoteException.
Also O'reilly 2nd ed mentions that the container handles system exception where as Application exceptions are to be handled by the bean provider (as far as I remember. I will post on this tomorrow). Hence you put the logic of three method in a try block and in the catch block, rethrow EJBException. This rethrown exception is now handled by the container (my understanding! ). Then the output may be as per your understanding. HTH