• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
  • Himai Minh
  • Carey Brown
  • salvin francis

bean pool

Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While entity beans are in pool, they have not object identity. They get an identity only after they move to ready state. Is this correct.
If correct, how are we able to execute findByPrimaryKey method on the pool of beans with no identity.
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even when an Entity Bean is in pool, it has a PK associated wih it. You can get a reference to an entity bean if you know what its PK is, by using the findByPrimaryKey method.
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sri Can u plz elaborate a little bit on this topic? I mean how PK is associated with the bean even when its in pool?
EJB Specification says "The implementation of the findByPrimaryKey(primaryKey) method must ensure that the entity object exists."
Does that mean that we can call find...(pri...) method as long as we dont call remove for the ejb Object? Or put it in other way.. Does that mean that once u call remove() method on a EJB object we can not call find... (pri) method when the bean is in pool sate? Plz Make the doubt clear....
[ November 11, 2003: Message edited by: Bish Ach ]
Climb the rope! CLIMB THE ROPE! You too tiny ad:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic