If this is the case, it should still work. The SLSB iterates through a list
of business objects, finds there enterprise equivalent (findByPrimaryKey),
sets the state and moves on to the next. Since the SLSB does not return
before either saving all business object states or the first exception is
thrown (i.e. TX rollback) A finder invokation would occur between each
store. Unless I misunderstand what you are describing.
To simplify this is the order of events.
SLSB.saveBusinessObjects(List objs);
for each obj in objs
findEnterpriseEntity
setEnterpriseEntityState
end
end
The SLSB.saveBusinessObjects method has a tx attribute of Required as do all
the state setters. All other methods use Supports.
-----Original Message-----
From: danch [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 3:12 PM
To: David Jencks
Cc: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] DB connection/transactions in the same J2EE
transaction context.
David Jencks wrote:
> If you are depending on the changes being sent to the db in a certain
> order.. this may not be happening, I'm not sure. I think right before the
> end of the transaction all ejbStore methods get called, but perhaps not in
> any particular order.
>
I believe that 2.4.3 has Bill's fix that forces ejbStores to be called
before any finder is called. Not in any specific order, however.
-danch
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
**********************************************************************
This e-mail contains privileged attorney-client communications and/or confidential
information, and is only for the use by the intended recipient. Receipt by an
unintended recipient does not constitute a waiver of any applicable privilege."
Reading, disclosure, discussion, dissemination, distribution or copying of this
information by anyone other than the intended recipient or his or her employees or
agents is strictly prohibited. If you have received this communication in error,
please immediately notify us and delete the original material from your computer."
Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or SoCalGas, the
utilities owned by SET's parent company. SET is not regulated by the California
Public Utilities Commission and you do not have to buy SET's products and services to
continue to receive quality regulated service from the utilities."
**********************************************************************
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user