Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB 2.0 Remote Client View  RSS feed

 
Jane Barnett
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All methods in the remote interface must declare that it throws the RemoteException. These methods may also declare application exceptions in the throws clause. Why not declare the general "Exception" in the throws clause? What are the implications?
 
Devaka Cooray
Marshal
Posts: 5512
687
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even in plain old JavaSE, declaring "throws Exception" is not considered as a good approach.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!