-
1. Re: How to set the isolation level
gfzhang Feb 2, 2004 3:37 AM (in response to gfzhang)cited from: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=14967
you can set the transaction isolation level in the datasource configuration file name-ds.xml in the deploy directory for jboss 3.x.x.
this is an example for ms sqlserver:
Code:
<local-tx-datasource>
<jndi-name>matrix</jndi-name>
<connection-url>jdbc:microsoft:sqlserver://:1433;databaseName=<db-name>;SelectMethod=cursor</connection-url>
<driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>
<user-name>xxx</user-name>
< password>xxx< /password>
<transaction-isolation>TRANSACTION_READ_UNCOMMITTED</transaction-isolation>
</local-tx-datasource>
possible values are: TRANSACTION_SERIALIZABLE, TRANSACTION_REPEATABLE_READ, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED