Hi Y'All,
Isn't this related to the isolation levels? (Read
Uncommited, Read Commited, Repeatable Read,
Serializable).
The code has to account for all that.
Isolation levels are defined in section 17.3.2 page
340 (of second public final draft).
Cheers, CC
--- danch <[EMAIL PROTECTED]> wrote:
> My initial reaction was "Oof, good god no!" The
> performance drag of all
> of those writes would be horrible.
>
> Looking at the interaction diagrams in the spec, the
> commit protocol
> diagrams show ejbStore happening in
> 'beforeCompletion', i.e. only at
> commit. Other diagrams merely show store happening
> at some point after a
> business method is called. The text may be more
> specific, but I haven't
> time to hunt right now.
>
> -danch
>
> Bill Burke wrote:
>
> > All,
> >
> > We have the following (bad?) assumption in our
> application code:
> >
> > ----------------------------
> > begin transaction
> >
> > Bean b = findByPrimaryKey(...)
> > System.out.println("flag = " + b.getFlag()); //
> prints flag = 1
> > b.setFlag("0")
> >
> > Enumeration =
> findByAllBeansWithFlagEqualToOne(....) // where flag
> = '1'
> >
> > // We assume Bean b is not in the Enumeration, but
> it is.
> >
> > end transaction
> > ----------------------------
> >
> > My question to you guys is,
> >
> > Should storeEntity be called after every Entity
> method invocation? Right
> > now, a database update only happens when the
> Entity is commited. What does
> > the spec say on this? I can't find anything at
> the moment.
> >
> >
> > Thanks in advance,
> >
> > Bill
> >
> >
> > --
> > This is the JBossCMP mailing list. Please send
> email to '[EMAIL PROTECTED]'
> > with the command 'unsubscribe jbosscmp
> [email@address]' in the body of the mail
> > to be removed from this list.
>
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/jboss-development
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development