my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes RuntimeExceptions in RemoteInterface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "RuntimeExceptions in RemoteInterface" Watch "RuntimeExceptions in RemoteInterface" New topic
Author

RuntimeExceptions in RemoteInterface

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9349
    
    2

Guys,

Why we should not throw any RuntimeExceptions in the RemoteInterface methods and that our ApplicationExceptions should not be a subclass of RuntimeExceptions?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Kalyan Anand
Ranch Hand

Joined: Feb 07, 2007
Posts: 194
As far as I know the container wraps up the runtime exception and propogates them as remote exception to the client. Apart from that when runtime exception occurs the container implictly marks the transacyion for rollback.
[ October 05, 2008: Message edited by: Santhosh Jali ]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9349
    
    2

What is AFAIK?
Kalyan Anand
Ranch Hand

Joined: Feb 07, 2007
Posts: 194
Expanded it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RuntimeExceptions in RemoteInterface