• Post Reply Bookmark Topic Watch Topic
  • New Topic

simple basic ejb question

 
Rahul Kakkar
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should the throws clause of all methods directly define the java.rmi.RemoteException, or can it define some exception which extends RemoteException?
 
Chris Brat
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

All methods in the remote interfaces (component and home) MUST throw either the RemoteException or a subclass of it.

The implementation methods in the bean class MUST NOT throw the RemoteException or a subclass of it.

Chris.
 
Rahul Kakkar
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay thanks

Also, should local home interface DIRECTLY extends javax.ejb.EJBLocalHome or again could extend a subclass of it?
 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pls refer to the Mastering EJB 3.0 by Ed Roman for your query.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!