File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why EB can't throw RemoteException in Home Biz Methods?

 
Alfred Harre
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HFEB page 346, very last bullet on this page mentions that you should never throw RemoteException from a home business method. I don't understand reason behind this restriction.
Can anybody explanin?
 
Lionel Orellana
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alfred, you don't throw RemoteException from ANY method in your bean class, no matter where it comes from (your home or your component interface). In the remote interfaces you do declare RemoteException, but never in the bean class. Why? Your bean is not a remote object. A client never talks to your bean directly but to the EJBObject (the bodyguard). It is the EJBObject who is a remote object, not your bean.

cheers
 
Alfred Harre
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh my lucky electron, I forgot that
Lionel Orellana thanks a lot for your help.
 
Lionel Orellana
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u r welcome Alfred Harre
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic