-
1. Re: read-ahead & transaction performance tuning
jcasp Jul 23, 2002 3:03 PM (in response to jcasp)Am I correct in thinking that when a session bean method has the transaction attribute 'RequiresNew' is called by a client (a servlet, in my case), that transaction is valid for all calls to entity beans made within that method?
e.g.,
<assembly-descriptor>
<container-transaction>
<ejb-name>JobManagerBean</ejb-name>
<method-name>getJobsByOrderDate</method-name>
<trans-attribute>RequiresNew</trans-attribute>
</container-transaction>
</assembly-descriptor>
the session bean method 'getJobsByOrderDate' which
1) calls an entity finder
2) iterates through the Collection of entities returned
3) returns a value object Collection to the caller
should wrap all the entity accessor calls in a single transaction, right?
apparantly, I'm just not getting something here.
Justin -
2. Re: read-ahead & transaction performance tuning
dsundstrom Jul 24, 2002 1:43 AM (in response to jcasp)Does it work with Required.
-
3. Re: read-ahead & transaction performance tuning
jcasp Jul 24, 2002 12:04 PM (in response to jcasp)No.
I guess that's expected, because I didn't have any transaction attributes specified until RequiresNew. I remember reading that 'Required' is the default when unspecified. -
4. Re: read-ahead & transaction performance tuning
jcasp Jul 26, 2002 10:59 AM (in response to jcasp)bump