lunes, 1 de septiembre de 2008

Timeout en ibatis

De acuerdo a la documentación de ibatis, el timeout de queries fue incorporado a partir de la versión 2.2.0.

defaultStatementTimeout
(iBATIS versions 2.2.0 and later)
This setting is an integer value that will be applied as the JDBC query timeout for all statements. This value can be overridden with the “statement” attribute of any mapped statement. If not specified, no query timeout will be set unless specified on the “statement” attribute of a mapped statement. The specified value is the number of seconds the driver will wait for a statement to finish. Note that not all drivers support this setting.

1 comentario:

pbustos dijo...

Parece que sólo funciona con oracle:

When the timeout expires, it throws a SQL Exception "ORA-01013 : user requested cancel of current operation".

Tested with:

* Oracle 9i release 2 drivers.


http://opensource.atlassian.com/confluence/oss/display/IBATIS/Environment+Specific+Information