• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TransactionRollbackException

 
Adri Smith
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
chao cai
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if the bean is CMT the contain will throw the TranscationRollBackedException
 
chao cai
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if the client start the transcation,the TranscationRollBackException will be received by the client
 
Adri Smith
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx you this is correct (I did some readings, therefore I can confirm)
[ September 10, 2005: Message edited by: Adri Smith ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic