• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

TransactionRollbackException

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic