Hi all, I have written my own CMP entity bean, and I am calling it from a JSP Page. Now I am wondering about a couple of things ...
1) When calling it directly, is there any implicit transaction demarcation that you can generally expect, or should I create my own user transaction on the caller side? 2) The abstract get and sets of the entity bean do not throw exceptions; if I assume that the database will deal with data errors for me when and what exception could one expect, or is this undefined? More generally, can CMP entity beans generally be relied upon to deal with data validation? I remember reading the phrase "aggressive caching" somewhere which seems like an accident waiting to happen (6). 3) The above makes me believe that a session facade is the only realistic way to deal with get/set of the data and to control transactions. I am looking at this from a technical perspective, and mentally ignoring the design issues. That means that you cannot generally use CMP without accessor objects (like the bad old days of BMP, what?). Any views on that? I would rather do this than have some shmoe "enhance" my poor value object, but it does seem like quite a complex thing to do in my simple application. Any response to the above qestions would be greatly appreciated. Thanks =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
