aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 9243
    
    1

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, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
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: 9243
    
    1

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
 
Similar Threads
can't get this little RMI program to run...
How to create unique Client ID
all RuntimeExceptions are unchecked exceptions?
Please advise how to catch runtimeException in servlet level.
force method to be overriden in subclasses