db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/dbhandling CommonsSqlDatabaseHandling.java
Date Mon, 08 Nov 2004 20:09:09 GMT
brj         2004/11/08 12:09:09

  Modified:    src/java/org/apache/ojb/broker/util/dbhandling
                        CommonsSqlDatabaseHandling.java
  Log:
  Print URL
  
  Revision  Changes    Path
  1.9       +9 -1      db-ojb/src/java/org/apache/ojb/broker/util/dbhandling/CommonsSqlDatabaseHandling.java
  
  Index: CommonsSqlDatabaseHandling.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/dbhandling/CommonsSqlDatabaseHandling.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- CommonsSqlDatabaseHandling.java	14 Aug 2004 20:09:38 -0000	1.8
  +++ CommonsSqlDatabaseHandling.java	8 Nov 2004 20:09:09 -0000	1.9
  @@ -15,7 +15,11 @@
    * limitations under the License.
    */
   
  -import java.io.*;
  +import java.io.FileReader;
  +import java.io.IOException;
  +import java.io.Reader;
  +import java.io.StringWriter;
  +import java.io.Writer;
   import java.util.HashMap;
   import java.util.Iterator;
   import java.util.Properties;
  @@ -174,10 +178,14 @@
               {
                   throw new DatabaseHandlingException(ex);
               }
  +
  +            System.out.println("Jdbc-Url = " + _jcd.getProtocol() + ":" + _jcd.getSubProtocol()
+ ":" + _jcd.getDbAlias());
  +
               _dataSource.setJdbcURL(_jcd.getProtocol() + ":" + _jcd.getSubProtocol() + ":"
+ _jcd.getDbAlias());
               _dataSource.setUserName(_jcd.getUserName());
               _dataSource.setPassword(_jcd.getPassWord());
           }
  +        
           return _dataSource;
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message