Hi Hai,
I'm just reading it actually and from my basic understanding, I think that your example should be this way :
You have a Bean, named PriceBean, with the business method getPrice(). No getLocalPrice() or getRemotePrice(). What would be the goal for ? Is the price different for a local or remote perspective ? Don't you find that it doesn't make sense ?
So, I think HDEJB want to say that you can have :
EJBLocalObject, EJBObject, EBJHome EJBLocalHome interfaces
Since the naming convention, you will have :
- Price extends EJBObject
- PriceLocal extends EJBLocalObject
- PriceHome extends EJBHome
- PriceLocalHome extends EBJLocalHome
and you can choose whatever you want to create a REMOTE object or LOCAL object to, finally, come to the same result : running your business method.
I don't remember the exact page in the book but they say to keep in mind what is your primary goal : running the Bus. Method.
Hope this will help !

[ August 04, 2004: Message edited by: Frederic Filiatrault ]