marc fleury wrote:
> I sort of believe there is an interesting RO policy at the container as
> well.  It won't cover the "direct DB access" but will speed up the container
> level... see my previous mail.

If I understand you correctly you are talking about using RO flags to
allow multiple threads in one entity instance. We have that today, but
it is a proprietary flag with counter-spec workings useful for
perfomance reasons.

However, in this discussion we should talk about an optimistic
concurrency control scheme that *is* spec-compliant, i.e. work with
multiple concurrent entity instances mapped to the same key.

> |concurrency control by reading the data outside of the transaction
> |and re-reading it in the transaction before writing it--first validating
> |that it has not been changed. You can use a token (e.g. last
> |modified number or date) to do this, although a more general
> 
> :))) this is pretty much the "pattern from the server side".

Except the database would be doing it. The TSS.com pattern is done by
the application developer. So, either db or app, not container in any
case.

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com

Reply via email to