File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "regarding Tansaction Exceptions" Watch "regarding Tansaction Exceptions" New topic

regarding Tansaction Exceptions

raghu vadranam

Joined: Sep 01, 2004
Posts: 23
Is there two Transaction exceptions like


What's the diffrence between these two?

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

Joined: Jan 17, 2002
Posts: 498

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

[ October 05, 2004: Message edited by: Marcelo Sousa Ancelmo ]

Marcelo Sousa Ancelmo - Brazil
Ahmed Agiza

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


and javax.transaction.TransactionRolledBackException ?

Best regards, Ahmed
Nileesha Bojjawar
Ranch Hand

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


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:

Hope it is clear now.

Regards,<br />Sandesh<br />(SCJCP, SCWCD, SCBCD - 99%, OCP-1)<br /> <br />Either find a way or create one.
I agree. Here's the link:
subject: regarding Tansaction Exceptions
jQuery in Action, 3rd edition