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

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

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

--- incubator/derby/docs/trunk/src/adminguide/radminembeddedserverex.dita	2005/05/06 22:42:21	168975
+++ incubator/derby/docs/trunk/src/adminguide/radminembeddedserverex.dita	2005/05/06 22:46:20	168976
@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
-
 <!DOCTYPE reference PUBLIC "-//IBM//DTD DITA Reference//EN"
  "../dtd/reference.dtd">
 <!-- 
@@ -33,19 +32,19 @@ NetworkServerControl server = new Networ
 	(InetAddress.getByName("localhost"),1527);
 server.start(null);</codeblock></example>
 <section><p>The program that starts Network Server can access the database
-with either the embedded driver or the IBM JDBC Universal Driver. The server
-framework's attempt to boot the local JDBC driver is ignored because it has
-already been booted within the application's JVM. The server framework simply
-accesses the instance of <ph conref="adminconrefs.dita#prod/productshortname"></ph> already
+with either the embedded driver or the Network Client driver.
+The server framework's attempt to boot the local JDBC driver is ignored because
+it has already been booted within the application's JVM. The server framework
+simply accesses the instance of <ph conref="adminconrefs.dita#prod/productshortname"></ph> already
 booted. There is no conflict between the application and the server framework.</p></section>
-<section><p>The remote client can then connect via the client driver: </p></section>
-<section><p> <codeblock>String nsURL="jdbc:derby:net://localhost:1527/
-sample:retrieveMessagesFromServerOnGetMessage=true;";  
+<section><p>The remote client can then connect via the <ph conref="adminconrefs.dita#prod/productshortname"></ph> client
+driver: </p></section>
+<section><p> <codeblock>String nsURL="jdbc:derby://localhost:1527/sample";  
 java.util.Properties props = new java.util.Properties();
 props.put("user","usr");
 props.put("password","pwd");
 
-Class.forName("com.ibm.db2.jcc.DB2Driver").newInstance();
+Class.forName("org.apache.derby.jdbc.ClientDriver").newInstance();
 Connection conn = DriverManager.getConnection(nsURL, props);
 
 /*interact with <ph conref="adminconrefs.dita#prod/productshortname"></ph>*/
@@ -55,4 +54,4 @@ ResultSet rs = s.executeQuery(
 "SELECT * FROM HotelBookings");</codeblock></p></section>
 </refbody>
 </reference>
-<?Pub *0000002853?>
+<?Pub *0000002867?>

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26