ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Goodin" <brandon.goo...@gmail.com>
Subject Re: Transaction Ibati MySql don't work
Date Tue, 23 May 2006 01:30:03 GMT
Please provide how you have proven that the transactions are not
working. Also, like Jerome stated, please post all configs and actual
java code involved when asking for support.

Thanks,
Brandon

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