• 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
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

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 ?
 
Life just hasn't been the same since the volcano erupted and now the air is full of tiny ads.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic