Spring Transaction Management.
Posted on 2005-04-23
I found this para in the spring documentation.
Global transactions have a significant downside. Code needs to use JTA: a cumbersome API to use (partly due to its exception model). Furthermore, a JTA UserTransaction normally needs to be obtained from JNDI: meaning that we need to use both JNDI and JTA to use JTA. Obviously all use of global transactions limits the reusability of application code, as JTA is normally only available in an application server environment.
Does this mean that we can use spring and have the application code (using JTA) run on Web-Servers as well (like Tomcat) ??
If Yes then my next question is how will the Tomcat understand JTA API ? Doesnt it need a J2EE (or EJB) container to support JTA ?