Hi,
Rickard Oberg wrote:
>
> Hi!
>
> > Rickard, ok, this is you with the same problem on a different view.
> > I guess you still can't "see" multiple threads in one Tx... strange
>
> Ah, now I see where the confusion comes from.
>
> The main thing is: multiple physical threads, yes, but only one logical
> thread of execution. The transaction, or "call flow", may involve several
> physical threads as beans call beans in other servers or in the same server
> or whatever, but there is only one "flow". The river never splits into two
> concurrent flows of execution.
Be careful about assumptions here. In a pure EJB world
the river cannot split, but not all environments are pure
EJB.
Example:
A bean starts a transaction and calls some non-EJB system
by using a resource. This non-EJB system starts two threads
for doing some work in parallel, and the river has split.
Now these two threads may both call EJB systems with the
original transactional context...
Best Regards,
Ole Husgaard.