This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes ApplicationException or SystemException 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 "ApplicationException or SystemException" Watch "ApplicationException or SystemException" New topic
Author

ApplicationException or SystemException

Treimin Clark
Ranch Hand

Joined: Nov 12, 2008
Posts: 757
Maikalai Zaikin wrote:A system exception is an exception that is a java.rmi.RemoteException (or one of its subclasses) or a RuntimeException that is not an application exception.


If class A is a sub class of Exception, but not a subclass of either RuntimeException or RemoteException. And class A doesn't annotated with @ApplicationException. In this case, please tell me whether class A is an application or system exception?

Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
It is an application exception, bu default, which has the rollback attribute set to false.
Treimin Clark
Ranch Hand

Joined: Nov 12, 2008
Posts: 757
Got it. Thanks Raf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ApplicationException or SystemException
 
It's not a secret anymore!