This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
Boost this thread!