This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exceptions  RSS feed

 
Sudd Ghosh
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I am getting very confused with the Exceptions.
At someplace the specs say that the application exceptions are propagated to the client and the client is given a chance to handle. The system/checked exceptions are handled by the container. Any application exception that we don't want the client to handle should be wrapped inside EJBException and re-thrown so that the container can handle it.
What is the deal with RemoteException? According to me that is also a checked exception (from Exception.IOException class)and should be dealt accordingly. Why it is treated separately all over the specs ?
Also I'm having a tough time understanding the exception from methods in CMT beans.
Can someone enumerate the important portions in the "Exception handling" chapter ? In how much detail we need to know ?
Thanks, Sudd
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!