• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reassigning an entity bean instance.....

 
J Johny Rufus
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi people,
Assuming that there are two EJB Objects(remote interfaces) created and there is only one entity bean instance managed by the container,
does setting the entity context for bean instance happen, when the container needs to re-assign the entity bean instance from the first EJB Object to the second ?
In the code for ejbLoad and ejbRemove, before touching the database, we get the primarykey of the current EJBObject using the ctx.getPrimareyKey.
My question is , how does this context object in the entity bean instance gets set to the current EJB Object upon which it is invoked .....
Can someone explain me the proces involved in this......
Thanks
RUF
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic