Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • 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

Conflicting description of home business methods in HFE

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In P325, under section "three ways to get a reference to an entity bean", it reads "Client calls a home business method that returns a reference to the bean's component interface".
In P346, under "What to put in a home business method", it reads "Put code in your home business methods that apply to the underlying database-for a group of entities rather than one specific entity-and that don't return the bean's component interface".
Is this an error or am I missing something? Thanks.
 
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any method in the home can return a component interface type. You do not need a reference to a specific bean to call a home method.
 
Ming Hu
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the input, Anthony.
I guess the real question should be: what can or should an entity bean's home business method return? Anything including the bean's component interface? Regarding the component interface, is it those create and find methods are there for?
 
reply
    Bookmark Topic Watch Topic
  • New Topic