*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Home Business Method - Local Call ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Home Business Method - Local Call ?" Watch "Home Business Method - Local Call ?" New topic
Author

Home Business Method - Local Call ?

Vince Hon
Ranch Hand

Joined: Feb 11, 2003
Posts: 117
on HFB P.278
We might put a home business method in the Customer bean like, getAllCustomerInfo(), that returns a collection of Strings..

Better yet, you can send back a collection of CustomerInfo objects. That
way, the client can make local calls to get the data it needs out of the
CustomerInfo objects, without having those calls be remote calls on the
component interface.


My understanding:

if put the getAllCustomerInfo() in Home:
RemoteClient --> /*Home*/ getAllCustomerInfo() --> Database.
There are 1 remote call and 1 local call.

if put the getAllCustomerInfo() in bean:
RemoteClient --> Home findByPrimaryKey()
RemoteClient --> /*Bean*/ getAllCustomerInfo() --> Database.
There are 2 remote call and 1 local call.

How client can make LOCAL calls when put getAllCustomerInfo() in Home ?
From above case, can using Home biz methods reduce the no. of remote call by 1 ?


Vince Hon<br /> <br />SCJP 1.4 | SCWCD | SCBCD <br /><a href="http://vincehon.homeip.net:8000/VJW" target="_blank" rel="nofollow">http://vincehon.homeip.net:8000/VJW</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Home Business Method - Local Call ?
 
Similar Threads
EJB basic Questions
About Entity bean
When to use session beans...
Entity beans are shared data?
choosing between home business methods and finders