Forums Register Login

How are variables initialized in BMP when findByPrimaryKey is called

+Pie Number of slices to send: Send
I think I know the answer but I want to verify it.
In BMP how are the instance variables of the entity bean initialized when the findByPrimaryKey method is called?
thanks.
+Pie Number of slices to send: Send
The container will call ejbLoad when you need to initialize the bean state.
All you have to do in findByPrimaryKey is return the PK if it is there, throw ObjectNotFoundException if not.
No holds barred. And no bars holed. Except this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 496 times.
Similar Threads
Doubt on BMP bean.
ejbStore is being called intermittently.
Help needed in execution Sequence
Reg. class initialization
Practice Question
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:23:51.