Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why not Enterprise Bean class implements remote/local interface???

 
Denis Wang
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it forbidden only because of the exceptions decleared in the Remote interface? Each method of a remote interface must list RemoteException in its throws clause. This is required by RMI-IIOP.
Another related question, does EJBException, a runtime exception, have to be declared in the interface as thrown? People generally do so. I don't know why. Anyway we don't have to declare throw a runtime exception, right?
 
Thomas Taeger
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only the container is allowed to implement them.
If you would implement, it would not be deployable.
tomte.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic