commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp package.html
Date Thu, 24 Jun 2004 18:57:29 GMT
dirkv       2004/06/24 11:57:29

  Modified:    dbcp/src/java/org/apache/commons/dbcp package.html
  Log:
  fix DriverManagerConnectionFactory example in javadoc
  
  Revision  Changes    Path
  1.3       +3 -3      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/package.html
  
  Index: package.html
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/package.html,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- package.html	22 Aug 2003 16:59:11 -0000	1.2
  +++ package.html	24 Jun 2004 18:57:29 -0000	1.3
  @@ -96,7 +96,7 @@
         </p><p>
            In code, that might look like this:
   <pre>GenericObjectPool connectionPool = new GenericObjectPool(null);
  -DriverManagerConnectionFactory connectionFactory = new DriverConnectionFactory("jdbc:some:connect:string",null);
  +ConnectionFactory connectionFactory = new DriverManagerConnectionFactory("jdbc:some:connect:string",
"username", "password");
   PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory,connectionPool,null,null,false,true);
   PoolingDataSource dataSource = new PoolingDataSource(connectionPool);</pre>
         </p><p>
  @@ -105,7 +105,7 @@
            we create a {@link org.apache.commons.dbcp.PoolingDriver}, and register the
            <tt>connectionPool</tt> with it.  E.g.,:
   <pre>GenericObjectPool connectionPool = new GenericObjectPool(null);
  -DriverManagerConnectionFactory connectionFactory = new DriverConnectionFactory("jdbc:some:connect:string",null);
  +ConnectionFactory connectionFactory = new DriverManagerConnectionFactory("jdbc:some:connect:string",
"username", "password");
   PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory,connectionPool,null,null,false,true);
   PoolingDriver driver = new PoolingDriver();
   driver.registerPool("example",connectionPool);</pre>
  
  
  

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


Mime
View raw message