User: dsundstrom
Date: 01/06/26 11:12:06
Modified: src/main/org/jboss/ejb/plugins/cmp/jdbc
JDBCStoreManager.java
Log:
Added configurable transaction isolation.
Revision Changes Path
1.2 +12 -2
jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/JDBCStoreManager.java
Index: JDBCStoreManager.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/JDBCStoreManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- JDBCStoreManager.java 2001/06/24 03:23:14 1.1
+++ JDBCStoreManager.java 2001/06/26 18:12:06 1.2
@@ -46,10 +46,12 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Dain Sundstrom</a>
* @see org.jboss.ejb.EntityPersistenceStore
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class JDBCStoreManager extends CMPStoreManager {
protected DataSource dataSource;
+ protected Integer transactionIsolation;
+
protected JDBCTypeFactory typeFactory;
protected boolean debug;
@@ -117,7 +119,11 @@
* Returns a database connection
*/
public Connection getConnection() throws SQLException {
- return dataSource.getConnection();
+ Connection connection = dataSource.getConnection();
+ if(transactionIsolation != null) {
+
connection.setTransactionIsolation(transactionIsolation.intValue());
+ }
+ return connection;
}
//
@@ -143,6 +149,10 @@
if(dataSource == null) {
throw new DeploymentException("Unable to locate data source.");
}
+
+ // Transaction Isolation
+ transactionIsolation = jamd.getTransactionIsolation();
+ log.debug("Transaction Isolation set to " + transactionIsolation);
// Get JDBC Bean MetaData
String ejbName = container.getBeanMetaData().getEjbName();
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development