Why not making method A "RequiresNew"? This will force a commit and with this, the EB
would be stored.
-------- Original Message --------
Subject: Need EJB updates within txn (14-Aug-2001 14:51)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
> Is there any way to configure a BMP entity bean so that the container will
> update the bean immediately? That is; not wait until the end of transaction.
>
>
> I am using JOnAS 2.3 under JDK 1.3 for Linux 6.1.
>
> Example:
> Client invokes method A on SSB (container managed txns: Required). The SSB'
> s
> method A updates a record via a BMP entity bean. From within method A, the
> SSB then calls another one of its methods (lets call it method B which is
> also 'Required') that, among other things, will load the appropriate entity
> bean to read the record previously updated.
>
> The problem is that method B (called from with method A) will not see the
> update from method A because the container will not invoke ejbStore() until
> the transaction is ended (method A returns).
>
> FYI: Weblogic has a setting called "delay-updates-until-end-of-tx" that can
> be defined for each bean type. The default behavior for this attribute is
> 'true', but when set to 'false' the above example scenario works. I have
> also heard that several other vendors have similar settings.
>
> I would appreciate any suggestion you might have.
>
> Thanks,
>
> Joe Weder
> Software Engineer
> Intelligent Computer Systems
> [EMAIL PROTECTED]
> 717.295.7977 x614
>
> ----
> 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: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
[EMAIL PROTECTED]
----
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".