should be the same for both using resources.xml (int)

*Romain Manni-Bucau*
*Twitter: @rmannibucau*
*Blog: http://rmannibucau.wordpress.com*




2012/8/24 Diego Cattelan <[email protected]>

>  Hi Diego,
>>
>> The value needs to be the int value:
>>
>> http://docs.oracle.com/javase/**6/docs/api/constant-values.**
>> html#java.sql.Connection.**TRANSACTION_NONE<http://docs.oracle.com/javase/6/docs/api/constant-values.html#java.sql.Connection.TRANSACTION_NONE>
>>
>> java.sql.Connection
>> public static final int         TRANSACTION_NONE        0
>> public static final int         TRANSACTION_READ_COMMITTED      2
>> public static final int         TRANSACTION_READ_UNCOMMITTED    1
>> public static final int         TRANSACTION_REPEATABLE_READ     4
>> public static final int         TRANSACTION_SERIALIZABLE        8
>>
>> Regards,
>>
>> Andy.
>>
>
> it was working with commons-jdbc,
> in tomcat-jdbc documentation for |defaultTransactionIsolation| (
> http://tomcat.apache.org/**tomcat-7.0-doc/jdbc-pool.html<http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html>)
> :
>
> (String) The default TransactionIsolation state of connections created by
> this pool. One of the following: (see javadoc )
>
>  * |NONE|
>  * |READ_COMMITTED|
>  * |READ_UNCOMMITTED|
>  * |REPEATABLE_READ|
>  * |SERIALIZABLE|
>
> If not set, the method will not be called and it defaults to the JDBC
> driver.
>
>

Reply via email to