Hi!

marc fleury wrote:
> |Not following. One thread will start a tx, and there is no way for it to
> |split (tx's are NOT inherited to spawned threads), so there will ever
> |only be one thread of execution for that tx. That is the only rule that
> |is important in this case.
> 
> we already know we can have many threads per tx, rickard...

Extremely not following. Where does it say in the JTA/JTS specs that one
can have many threads per tx? (And remember that we are ONLY talking
about logical threads of execution here, not the "a tx can be associated
with several threads" which is another thing COMPLETELY and has only to
do with the call flow going using up several physical threads on its
way).

> so where is that "scheduler" outside EJB????

I don't know what "scheduler" you are talking about. The only thing that
is relevant here is the following question:
If a threads starts a tx, and that threads starts a new thread, will
that new thread inherit the transaction so that the new thread can ask
the TM for the tx and get the same tx as the first thread.

If yes, then you are right. If no, then I am right.

Can you please elaborate what that scheduler would do and what purpose
it would have, and what it has to do with the above question?

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


Reply via email to