Sorry to cause confusion by being imprecise. Your post was correct, it's
ejbFindByXXX
elbLoad (* N)
if the beans are uncached or if commit option B or C and the beans have
not yet been loaded in the current transaction. Note that commit option
B or C and calling the finder from a client with CMT can be (N * M) + 1,
where M is the number of methods called!
If all N objects are in cache, and commit option is A, there will be
only 1 hit to the database.
-danch
Jay Walters wrote:
> Maybe I understand less than I think. Are you all saying that the actual
> scenario is
>
> ejbFindByXXX
> ejbFindByPrimaryKey
> ejbLoad
>
> when the bean needs to be loaded from disk (2N+1) and
>
> ejbFindByXXX
> ejbFindByPrimaryKey
>
> (N+1) when the N objects are all already in the app servers cache?
>
>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development