User: dsundstrom
Date: 01/06/26 11:31:54
Modified: src/main/org/jboss/ejb/plugins/jaws/jdbc JDBCCommand.java
Log:
Added configurable transaction isolation level.
Revision Changes Path
1.36 +8 -2 jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCCommand.java
Index: JDBCCommand.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCCommand.java,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- JDBCCommand.java 2001/06/22 05:04:23 1.35
+++ JDBCCommand.java 2001/06/26 18:31:54 1.36
@@ -58,7 +58,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Justin Forder</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Dirk Zimmermann</a>
* @author <a href="mailto:[EMAIL PROTECTED]">danch (Dan Christopherson</a>
- * @version $Revision: 1.35 $
+ * @version $Revision: 1.36 $
*
* Revision:
* 20010621 danch: add getter for name
@@ -687,7 +687,13 @@
DataSource ds = jawsEntity.getDataSource();
if (ds != null)
{
- return ds.getConnection();
+ Connection connection = ds.getConnection();
+
+ Integer txIsolation =
jawsEntity.getJawsApplication().getTransactionIsolation();
+ if(txIsolation != null) {
+
connection.setTransactionIsolation(txIsolation.intValue());
+ }
+ return connection;
} else throw new RuntimeException("Unable to locate data source!");
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development