posted 19 years ago
Hi all,
As you all know when a system exception is thrown in a bean, the container throws a RemoteException to a remote client. Ok but we also know that when a system exception raised in a bean, the container logs it, rollbacks the transaction and discards the bean.
I am actually wondering in case of system exception thrown in bean whithin an existing transaction context if the container is always required to throw a TransactionRollbackException (which is a RemoteException) to a remote client .
My question is whether the container must throw the most specify exception ? is it ok if the container throws a RemoteException ?
Could anyone clarify my ideas ?
Thanks in advance,
Adri
[ September 07, 2005: Message edited by: Adri Smith ]
[ September 07, 2005: Message edited by: Adri Smith ]