aspose file tools*
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
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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Home Business Method - Local Call ?