Thanks for the observation! However, looking at the 2.0 specification, only
chapter numbering has changed. The relevant texts seem to be identical.






WebLogic 6.1 does not claim to be compliant with EJB 2.1 (this would be
temporally impossible I believe). If you look at the EJB 2.0 spec, this
section is different (it is 10.5.9). See if that makes more sense.


>From: johan <[EMAIL PROTECTED]>
>Reply-To: johan <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: CMP and writing instance back to database
>Date: Sat, 17 Apr 2004 15:15:15 +0200
>
>Why would you assume that "synchronizes the instance's state with the
>persistent storage" should require the container to force beans to
>persistent store even though the container knows the state is already
>in sync (because it was never altered)?
>
>/johan
>
>On 2004-04-17, at 10.20, Janne Mattila wrote:
>
>>Some confusion about the EJB specification:
>>
>>EJB 2.1 specification, 10.5.10, "commit options" states that "container
>>synchronizes the instance's state with the persistent storage at
>>transaction commit for all three (commit) options". Table 6 states this
>>even more explicitly, having "Yes" at "Write instance state to
>>database"
>>for all commit options. Reading this, I would assume that the
>>specification
>>requires CMP engine to write each bean back to database at commit
>>time, no
>>matter what.
>>
>>This in contradiction with my experiences with WebLogic. WebLogic 6.1
>>"...Server CMP implementation automatically detects modifications of
>>CMP
>>fields and writes only those changes to the underlying datastore.".
>>This
>>seems logical, as writing CMP fields back when they have not been
>>changed
>>would not be efficient.
>>
>>Does anyone have an idea on what is really going on here:
>>
>>a) the intent of specification indeed requires that all fields be
>>written
>>back to db at commit, but WebLogic has chosen not to follow the
>>specification to ensure better performance
>>b) specification is written a bit badly, and in fact it requires that
>>ejbStore() be called at commit time - and WebLogic follows that
>>specification properly
>>c) something else?
>>

_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page ? FREE
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/

===========================================================================
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".




===========================================================================
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".

Reply via email to