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
>
--
"The best insurance for tomorrow is the effective use of today.”
-- Why Smart People Do Dumb Things by Dr. Mortimer Feinberg and John