April 2003
Intermediate to advanced
750 pages
16h 53m
English
If you check the Console view, you can see test messages from the persister class. From this output you can see that even a get method invokes both the loadState and the storeState method of the persister class, and therefore the table is updated for every method.
For CMP entity beans, the container is smart enough to update the table only when the data has been modified.
For BMP entity beans, we have to implement this ourselves.
Because we implement the persistent logic, we have to add the code to make the BMP entity bean smarter and not update the table unnecessarily.
We add a dirty field that is set whenever the bean data is updated. In the ejbStore method, we then check the dirty flag ...
Read now
Unlock full access