This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes regarding Tansaction Exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "regarding Tansaction Exceptions" Watch "regarding Tansaction Exceptions" New topic
Author

regarding Tansaction Exceptions

raghu vadranam
Greenhorn

Joined: Sep 01, 2004
Posts: 23
Is there two Transaction exceptions like
1)javax.ejb.TransactionRolledBackException

2)javax.transaction.TransactionRolledBackException

What's the diffrence between these two?


Raghu Nadh<br />SCJP 1.2,SCBCD
Marcelo Sousa Ancelmo
Ranch Hand

Joined: Jan 17, 2002
Posts: 497

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 ]

Marcelo Sousa Ancelmo - Brazil
Ahmed Agiza
Greenhorn

Joined: Aug 14, 2002
Posts: 3
SO what is the difference between

javax.ejb.TransactionRolledbackLocalException

and javax.transaction.TransactionRolledBackException ?

Best regards, Ahmed
Nileesha Bojjawar
Ranch Hand

Joined: Oct 10, 2003
Posts: 85
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


Nileesha<br />SCJP 1.4, SCBCD, SCWCD.
Sandesh Tathare
Ranch Hand

Joined: Jun 22, 2003
Posts: 82
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.


Regards,<br />Sandesh<br />(SCJCP, SCWCD, SCBCD - 99%, OCP-1)<br /> <br />Either find a way or create one.
 
 
subject: regarding Tansaction Exceptions
 
Similar Threads
writing from a jar
results ratio ?
try/catch
try-catch blocks, exception processing and the HashMap get method
RuntimeException