• 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
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Home Business Method - Local Call ?

 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
You didn't tell me he was so big. Unlike this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic