Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

 
Ranch Hand
Posts: 73
  • 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?
 
Ranch Hand
Posts: 87
  • 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
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u r welcome Alfred Harre
 
There were millions of the little blood suckers. But thanks to this tiny ad, I wasn't bitten once.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic