Devaka Cooray wrote:Interesting! I never heard that JTA can be used with J2SE.
Actually I was not exactly talking about J2SE. I was referring to codes like java action classes that handles DAO access, etc. The code is deployed in J2ee container. The code may be some plain action classes (not EJB). So in the code I access DAO layer. In this type code, can I use JTA to demarcate transaction ?