• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

regarding Tansaction Exceptions

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there two Transaction exceptions like
1)javax.ejb.TransactionRolledBackException

2)javax.transaction.TransactionRolledBackException

What's the diffrence between these two?
 
Ranch Hand
Posts: 498
Eclipse IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the client of the bean is remote, then he gets the javax.transaction.TransactionRolledBackException

If the client is local, the he gets javax.ejb.TransactionRolledBackLocalException

regards,
[ October 05, 2004: Message edited by: Marcelo Sousa Ancelmo ]
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SO what is the difference between

javax.ejb.TransactionRolledbackLocalException

and javax.transaction.TransactionRolledBackException ?

Best regards, Ahmed
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
IMO, javax.transaction.TransactionRolledbackException is a subclass of a RemoteException, so a Remote client get this exception and a Local client gets a javax.ejb.TransactionRolledbackLocalException which is a subclass of EJBException which is generally thrown to a local client.

Regards
 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For Remote Client: javax.transaction.TransactionRolledbackException
For Local Client : javax.ejb.TransactionRolledbackLocalException

There is no exception like:
javax.ejb.TransactionRolledbackException

Hope it is clear now.
 
eat bricks! HA! And here's another one! And a tiny ad!
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic