This content has been marked as final.
Show 2 replies
-
1. Re: storeRow is executed every time I call a business method
p_d_austin Sep 13, 2001 1:24 PM (in response to larry054)This is normal behaviour, at the end of each transaction store will be called on the bean. To stop this from happening implement and isModified() method that returns true if the data has been modified. In business methods that change data set modified to true. In ejbStore/ejbLoad set isModified to false.
I think the container knows about the isModified method automatically without any further configuration. I'll check this and get back to you.
Paul -
2. Re: storeRow is executed every time I call a business method
larry054 Sep 13, 2001 2:09 PM (in response to larry054)Thank you Paul. In retrospect, it seems obvious, but I have read two books and worked with EJB's for six months and never heard about this issue. I searched Serverside for "isModified" and found some interesting discussion on this subject.
Thanks again!
Larry