Register / Login
Win a copy of
Java 9 Revealed
this week in the
Features new in Java 9
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
EJB Certification (OCEEJBD)
When an Entity Bean is populated with real entity data
posted 10 years ago
In HFEJB page:354, under the "Bean" things that can be done inside
, it says
"Use your EntitiyContext to:
3-get your primary key"
But in page:348,
1. In 1st diagram it says
"Container will call ejbActivate()"
2. Then in the 2nd diagram it says
"Container populates the entity bean's persistent fields with the real entity data"
So, what I cannot understand is how an entity bean can get a reference to its Primary Key even
its being populated by the container?(as mentioned in page:354)
am I missing something here???
If possible please explain also when an entity bean and its EJBObject becomes connected to each other (is it before ejbActivate() or after that?)
tx in advance
[ April 03, 2007: Message edited by: Kenneth Kulathilake ]
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
Boost this thread!
Contradiction in Head First EJB ?
Bean things for ejbActivate
Bean in Entity bean pool lost identity?
ejbFind() in Entity Bean