User: fleury
Date: 00/08/17 20:21:08
Modified: src/main/org/jboss/minerva/factories
JDBCConnectionFactory.java XAConnectionFactory.java
Log:
Logger messages and clean up for binary
Revision Changes Path
1.3 +3 -2
jboss/src/main/org/jboss/minerva/factories/JDBCConnectionFactory.java
Index: JDBCConnectionFactory.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/minerva/factories/JDBCConnectionFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- JDBCConnectionFactory.java 2000/06/03 02:20:46 1.2
+++ JDBCConnectionFactory.java 2000/08/18 03:21:08 1.3
@@ -11,6 +11,7 @@
import java.util.Properties;
import org.jboss.minerva.pools.*;
import org.jboss.minerva.jdbc.*;
+import org.jboss.logging.Logger;
/**
* Object factory that creates java.sql.Connections. This is meant for use
@@ -18,7 +19,7 @@
* you're interested in creating transactional-aware connections, see
* XAConnectionFactory, which complies with the JDBC 2.0 standard extension.
* @see org.jboss.minerva.factories.XAConnectionFactory
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
* @author Aaron Mulder ([EMAIL PROTECTED])
*/
public class JDBCConnectionFactory extends PoolObjectFactory {
@@ -99,7 +100,7 @@
else
return DriverManager.getConnection(url);
} catch(SQLException e) {
- e.printStackTrace();
+ Logger.exception(e);
}
return null;
}
1.5 +5 -4
jboss/src/main/org/jboss/minerva/factories/XAConnectionFactory.java
Index: XAConnectionFactory.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/minerva/factories/XAConnectionFactory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XAConnectionFactory.java 2000/07/04 00:11:14 1.4
+++ XAConnectionFactory.java 2000/08/18 03:21:08 1.5
@@ -14,6 +14,7 @@
import javax.transaction.xa.*;
import org.jboss.minerva.pools.*;
import org.jboss.minerva.xa.*;
+import org.jboss.logging.Logger;
/**
* Object factory for JDBC 2.0 standard extension XAConnections. You pool the
@@ -22,7 +23,7 @@
* and any work done isn't associated with the java.sql.Connection anyway.
* <P><B>Note:</B> This implementation requires that the TransactionManager
* be bound to a JNDI name.</P>
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
* @author Aaron Mulder ([EMAIL PROTECTED])
*/
public class XAConnectionFactory extends PoolObjectFactory {
@@ -61,7 +62,7 @@
tm.getTransaction().delistResource(con.getXAResource(),
status);
}
} catch(Exception e) {
- e.printStackTrace();
+ Logger.exception(e);
throw new RuntimeException("Unable to deregister with
TransactionManager: "+e);
}
con.removeConnectionEventListener(listener);
@@ -161,7 +162,7 @@
else
return source.getXAConnection();
} catch(SQLException e) {
- e.printStackTrace();
+ Logger.exception(e);
}
return null;
}
@@ -184,7 +185,7 @@
if(log != null) log.println("No transaction right now.");
}
} catch(Exception e) {
- e.printStackTrace();
+ Logger.exception(e);
throw new RuntimeException("Unable to register with TransactionManager:
"+e);
}
if(con instanceof XAConnectionImpl)