• 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
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

ejbHome method

 
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
thank you.
 
"Don't believe every tiny ad you see on the internet. But this one is rock solid." - George Washington
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic