ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Efraín Laredo Chacón <laredo...@pucp.edu.pe>
Subject Transaction Ibati MySql don't work
Date Mon, 22 May 2006 21:30:32 GMT

Please help me 

I am used jdk1.5 + MySql 4.1.x + Ibatis 2.0 + JConnector 3.1.12 (3.1.8a) and 
don\'t work transactions (allways commit for each statement), my MySql database 
is a hosting on the other place, sample of code:

ClienteBean cliente = new ClienteBean();
Reader reader1 = Resources.getResourceAsReader(\\\"maps/sqlMapConfig.xml\\\"); 
SqlMapClient sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader1);

sqlMap.update(\\\"updateCorrelativo\\\",\\\"000\\\"); //update table here allways 
sqlMap.endTransaction();//but It coult be rollbak


Si desea recibir, semanalmente, el Boletín Electrónico de la PUCP, ingrese a:

View raw message