This content has been marked as final.
Show 2 replies
-
1. Re: Transaction rollback not working for CMP with mysql SOLV
distributed Sep 17, 2004 7:08 AM (in response to distributed)SOLVED !!!
The whole problem was that if we set the<create-table>true</create-table>
option in jbosscmp-jdbc.xml the the tables created by the container are of type MyISAM... and MySql supports transaction only on Tables of type InnoDB... so if you change the type of your tables to InnoDB everything should work fine.
I think there is an option somewhere to make sure that the tables created are of the type InnoDB maybe in conf/standardjbosscmp-jdbc.xml or somewhere.
Anyone aware of this ?
Thanks to Anubha for the solution and to Siddharth for his help.
vik -
2. Re: Transaction rollback not working for CMP with mysql
canghel Sep 20, 2004 10:51 AM (in response to distributed)Thanks for the answer. A possible solution is to start the MySQL server with option --default-table-type=InnoDB. By default the MySQL server uses MyISAM for table type and starting the server with this option changes the default type to InnoDB. I tried this and the rollback worked fine.
best regards,
Claudiu