Hi,
i remember having similiar problems and it took me a while to figure out that i had to use a DataSource-wrapper for the mysql connection. I think the problem was that the mysql jdbc driver did not allow to turn off the autocommit feature. (I apended my configuration below)
Of course you still have to set up a TransactionManager and use it either programmatically or with a TransactionProxyFactoryBean.
So, here is my code:
Code:
<bean id="dataSourceJdbc" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName">
<value>com.mysql.jdbc.Driver</value>
</property>
<property name="url">
<value>jdbc:mysql://127.0.0.1/test</value>
</property>
<property name="username">
<value>root</value>
</property>
<property name="password">
<value></value>
</property>
<property name="defaultAutoCommit">
<value>false</value>
</property>
</bean>
I hope this gives you a hint towards the problem.
Sebastian