• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

ejbHome method

 
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Can i use this method instead of ejbFind() for Remote and local ?

Thank you
 
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you can. But as a bean provider, we need to make sure that we are returning a collection of correct type of interfaces either remote or local.
finder methods can return a collection of remote or local objects based on the type of the home interface in which they are declared.This is not applicable for select methods as they are not declared in a home interface.
They have a special attribute(optional) in the DD called "result-type-mapping" which can hold either local or remote value.
You may find these posts also interesting, which makes me wonder if the Errata at OReilly site needs to be updated to include this also.(p:420) :roll:
https://coderanch.com/t/158964/java-EJB-SCBCD/certification/HF-EJB-abstract-schema-type
https://coderanch.com/t/158851/java-EJB-SCBCD/certification/SELECT-statement
 
Weerawit Maneepongsawat
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic