Janne Mattila wrote:Both artist and related cd's are being updated in a single transaction. Try it in sql.
The BMP bean contract states that ejbStore is called whenever the
container needs to sync the bean with the persistent store. You're free
to not update the db if you don't want. EJB isn't causing you
to perform unneccessary updates, your bean code is doing that. If you
want to have the container deal with updates, use CMP.
Clustering isn't mentioned in the EJB because it doesn't impact or
alter the container, bean or client contracts. It's to be implemented
in a transparent way. The spec is definitately written with clustered
and distributed systems in mind.
I have already explained that it's one large transaction over many
domain objects. What you haven't done is explain why one transaction is
required by your use case, with the exception of some hand waying
argument about ACID.--Victor =========================================================================== 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".
|
- Re: How to avoid database deadlocks? Victor Langelo
- Re: How to avoid database deadlocks? Janne Mattila
- Re: How to avoid database deadlocks? Victor Langelo
- Re: How to avoid database deadlocks? Janne Mattila
- Re: How to avoid database deadlocks? Victor Langelo
- Re: How to avoid database deadlocks? Janne Mattila
- Re: How to avoid database deadlocks? Victor Langelo
- Re: How to avoid database deadlocks? Janne Mattila
- Re: How to avoid database deadlocks? Victor Langelo
- Re: How to avoid database deadlocks? Janne Mattila
- Re: How to avoid database deadlocks? Victor Langelo
- Re: How to avoid database deadlocks? Johan Eltes
- Re: How to avoid database deadlocks? Janne Mattila
- Re: How to avoid database deadlocks? Janne Mattila
