• Post Reply Bookmark Topic Watch Topic
  • New Topic

bean things in ejbActivate() of entity bean

 
Micheal Jacob
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

HFEJB says,
1) container will call ejbActivate to bring out the bean from pool
2) Container will select the required data from DB
3) populate the bean & call ejbLoad()
4) call business method.....

How is it possible to access getPrimaryKey() & getEJB[Local]Object in ejbActivate method in entity bean ? when container had not even selected the required row from database ?

Micheal.
 
B.Sathish
Ranch Hand
Posts: 372
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a topic named "Bean Things are confusing", started by me around 2 -3 months back. I am too lazy to search for it and give it as a URL link here. Can you try searching for it? It has answers to a lot of such questions
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!