Output ouput is 1-30 in database whereas i think it shuld be 1-20 after that TransactionNotSupportedException
Madhu Juneja
Ranch Hand
Joined: Mar 10, 2001
Posts: 176
posted
0
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
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.