[EMAIL PROTECTED] wrote:
> Danch wrote:
> >Or implement 'isModified' on your beans, which will also work in WebLogic.
>
> What about platform independence and conformance to standards?
The standard doesn't mention a means for the container to determine when an entity
has been modified. So where's the conformance in putting this in jboss.xml?
> What if I want
> to use another EJB container? I shouldn't have to modify my code.
>
If you check the modified state in your ejbStore method you will get the
optimization on any platform. No need to modify your code in either case. The
isModified method will be ignored by platforms that don't support it.
Using isModified gives the BMP implementation more opportunity for optimization. A
scheme that only marks methods as never altering persistent state is less useful.
We would loose a significant number of the optimizations in our BMP implementation
if we relied only on a static identification of methods that never alter
persistent state.
--Victor Langelo
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user