• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

bean pool

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....
Thanx
[ November 11, 2003: Message edited by: Bish Ach ]
 
Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic