Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RuntimeExceptions in RemoteInterface

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

Why we should not throw any RuntimeExceptions in the RemoteInterface methods and that our ApplicationExceptions should not be a subclass of RuntimeExceptions?
 
Kalyan Anand
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is AFAIK?
 
Kalyan Anand
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Expanded it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic