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 ?