I think I've got a RTFM type problem but I can't seem to find the docs
on-line. I'd appreciate any links which might help.

I'm having a problem with my bean managed entity ejb. On the first
getXYZ() the container calls ejbLoad() as I would expect. What I didn't
expect was the container calling ejbStore() after each call to
getXYZ(). I expected the container to be smarter than that. Is this
ejbStore() behavior normal? The ejb specs seems to state that the bean
should be prepared for the container to call ejbStore() at any time and
that it should write all pending updates to the persistent store. I
guess I could put a "dirty" flag in the bean but that seems like a
hack.

My next question is how transactions are handled for beans which might
only be read. It would be a waste of cycles to do a commit in this
case. If I do not specify a trans-attribute for any of the methods for
this bean, what is the default transaction behavior?

--Larkin





--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to