1. Can I create any new transactions in between existing transactions in CMT or BMT?
About this, I have a little different idea.
Let's suppose the following situation: 1)a BMT bean calls a method, say f1() of a CMT bean. 2)the BMT bean's transaction attribute is configured requirednew 3)in f1(), javax.transaction.UserTransaction.begin() is called
I think the code could run without any problem: The f1() is invoked with a transaction context and in turn it initiate a new transaction.
if the f1() method of the CMT bean is replaced by a requirednew method of a BMT bean, the situation is the same. a brand new transaction would be initiated.
While if javax.transaction.UserTransaction.begin() is called twice in the f1(), an exception would be thrown.
As for nested transactions, what does it exactly mean? Could anyone shed much lights on this?
Regards, James [ February 27, 2005: Message edited by: James Du ]
You learn how to close your eyes and tell yourself "this just isn't really happening to me." Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss