User: mulder  
  Date: 00/06/07 16:09:07

  Modified:    src/main/org/jboss/jdbc XADataSourceLoader.java
  Log:
  Add logging to the initial XADataSource too.
  
  Revision  Changes    Path
  1.2       +5 -2      jboss/src/main/org/jboss/jdbc/XADataSourceLoader.java
  
  Index: XADataSourceLoader.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/jboss/src/main/org/jboss/jdbc/XADataSourceLoader.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XADataSourceLoader.java   2000/06/02 13:48:38     1.1
  +++ XADataSourceLoader.java   2000/06/07 23:09:07     1.2
  @@ -6,6 +6,7 @@
    */
   package org.jboss.jdbc;
   
  +import java.io.PrintWriter;
   import java.lang.reflect.*;
   import java.util.*;
   import javax.management.ObjectName;
  @@ -21,7 +22,7 @@
    * pool generates connections that are registered with the current Transaction
    * and support two-phase commit.  The constructors are called by the JMX engine
    * based on your MLET tags.
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    * @author Aaron Mulder ([EMAIL PROTECTED])
    */
   public class XADataSourceLoader extends ServiceMBeanSupport
  @@ -73,7 +74,9 @@
           source.setTransactionManagerJNDIName("TransactionManager");
           setAdditionalProperties(parseProperties(poolParameters));
           try {
  -            source.setLogWriter(new LogWriter(log));
  +            PrintWriter writer = new LogWriter(log);
  +            vendorSource.setLogWriter(writer);
  +            source.setLogWriter(writer);
           } catch(java.sql.SQLException e) {
               e.printStackTrace();
           }
  
  
  

Reply via email to