Joe,
I thought having read that "RequiresNew" not only starts a new transaction
before the method, but also closes that transaction after that method. In
this sense, if this is true (I could swear I read it onthe JavaSoft site),
the transaction gets commited and so the data is written right after the end
of method A, so method B reads the written data.
Markus
----- Original Message -----
From: "Joe Weder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, August 14, 2001 5:38 PM
Subject: Re: Need EJB updates within txn
> Markus,
>
>
> >Why not making method A "RequiresNew"? This will force a commit and with
> this, the EB would be stored.
>
>
> Thanks but I do not see how this would help. Making method B "RequiresNew"
> would make sense if the container detects a new transaction and commits
the
> work already done within method A.
>
> Anyway, I don't like the idea of changing the txn attributes on these
> methods because method B may be used in other situations. In fact, it may
> turn out that I really don't need a transaction on method B.
>
> Can you give additional information?
>
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> 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 "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".