This content has been marked as final.
Show 3 replies
-
1. Re: COMMIT is not working
marklittle May 25, 2007 5:06 PM (in response to vasanthan297)You're using JBossTS with Spring?
-
2. Re: COMMIT is not working
vasanthan297 May 28, 2007 1:17 AM (in response to vasanthan297)Yes I am using JbossTS with Spring.
-
3. Re: COMMIT is not working
marklittle May 28, 2007 12:31 PM (in response to vasanthan297)At this time we haven't tried JBossTS within Spring. However, it would seem that your connectionisn't known to the transaction manager and hence all work you're doing on it (through to MySQL) is happening immediately (i.e., autocommit is still true). If the TM knew about your connection then it would turn autocommit off and explicitly call commit (or rollback) when the transaction terminates.
You may find http://www.javaworld.com/javaworld/jw-04-2007/jw-04-xa.html?page=1 useful.