/[Apache-SVN]/incubator/derby/docs/trunk/src/adminguide/radminnsdatasourcexmp.dita
ViewVC logotype

Diff of /incubator/derby/docs/trunk/src/adminguide/radminnsdatasourcexmp.dita

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- incubator/derby/docs/trunk/src/adminguide/radminnsdatasourcexmp.dita	2005/05/06 22:42:21	168975
+++ incubator/derby/docs/trunk/src/adminguide/radminnsdatasourcexmp.dita	2005/05/06 22:46:20	168976
@@ -20,12 +20,12 @@ limitations under the License.
 <prolog>
 </prolog>
 <refbody>
-<section><p>The following example uses <codeph>com.ibm.db2.jcc.DB2SimpleDataSource</codeph> to
+<section><p>The following example uses <codeph>org.apache.derby.jdbc.ClientDataSource</codeph> to
 access the Network Server:</p></section><example>
 <codeblock>public static javax.sql.DataSource getDS(String database, String user, String
 password) throws SQLException
 {
-com.ibm.db2.jcc.DB2SimpleDataSource ds = new com.ibm.db2.jcc.DB2SimpleDataSource();
+org.apache.derby.jdbc.ClientDataSource ds = new org.apache.derby.jdbc.ClientDataSource();
 
 // DatabaseName can include <ph conref="adminconrefs.dita#prod/productshortname"></ph> URL Attributes
 ds.setDatabaseName(database);
@@ -41,9 +41,6 @@ ds.setServerName("localhost");
 // port on which Network Server is listening
 ds.setPortNumber(1527);
 
-// Driver type must be 4 to access Network Server
-ds.setDriverType(4);
-
 return ds;
 }
 </codeblock></example>

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26