Win a copy of The Career Toolkit this week in the Jobs Discussion 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

HFB isIdentical()

 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reference: HFB
page: 148
On the above page the author says that isIdentical()--lets you compare two home or component interfaces to see if they refer to "meaningfully equivalent" beans on the server but I was going through the API only EJBObject and EJBLocalObject use this method to compare the references
So isIdentical() can't be used to compare home references. Am I right?
 
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you're right. IsIdentical is used to compare two EJB(Local)Objects.
Joyce
[ April 10, 2004: Message edited by: Joyce Lee ]
 
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I too reckon U guys are right.
I have added this error to the unconfirmed errata list at the Oreilly site.
 
Bartender
Posts: 3664
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
howdy,
there are 2 ways to compare Entity Beans :
1. using isIdentical(..)
2. using equals() for PKs of those beans
details are here.
cheers !
 
I child proofed my house but they still get in. Distract them with this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic