Sankar,
With CMT, the calling bean's transaction will be suspended and a new transaction
started if the called method is marked as RequiresNew, right? Does it work
differently if I use UserTransactions in those 2 methods?
thanks,
-marina
sankara rao bhogi wrote:
> legolas wood wrote:
>
>> Hi
>> Thank you for reading my post.
>> what is impact and requirement of two userTransaction inside eachother?
>> for example we have a servlet which calls two method from two objects
>> it call them inside one userTransaction.
>> inside each method we have begging and ended some userTransaction.
>>
>> My question is: what is impact of this scenario and what is its
>> requirement from application server side, and resources like database
>> and JMS and ....
>
> Legolas,
>
> Java EE transactions model if flat and nested transactions are not
> supported. In the scenario you mentioned, if two objects are helper
> class objects,attempting to begin a transaction when it was began
> earlier but not completed, will result in an exception. If two objects
> are EJBs, Java EE programming model ensures that you will not hit the
> nested transactions case.
>
> regards
> sankar
>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
>