• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding Tansaction Exceptions

 
raghu vadranam
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?
 
Marcelo Sousa Ancelmo
Ranch Hand
Posts: 498
Eclipse IDE Fedora Firefox Browser
  • 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 ]
 
Ahmed Agiza
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
 
Nileesha Bojjawar
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
 
Sandesh Tathare
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic