• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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 ]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic