ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerome Gagner" <phpmon...@gmail.com>
Subject Re: Transaction Ibati MySql don't work
Date Mon, 22 May 2006 21:43:49 GMT
What's in y our SqlMapConfig

On 5/22/06, Gary Efraín Laredo Chacón <laredo.ge@pucp.edu.pe> wrote:
>
>
>
> 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.startTransaction();
> 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:
> http://www.pucp.edu.pe/boletin/
>
>

Mime
View raw message