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

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

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

--- incubator/derby/docs/trunk/src/adminguide/cadminappsxawthdriver.dita	2005/05/06 22:42:21	168975
+++ incubator/derby/docs/trunk/src/adminguide/cadminappsxawthdriver.dita	2005/05/06 22:46:20	168976
@@ -20,31 +20,27 @@ limitations under the License.
 -->
 
 <concept id="cadminappsxawthdriver" xml:lang="en-us">
-<title>Using XA with the DB2 Universal JDBC Driver</title>
+<title>Using XA with the Network Client driver</title>
 <prolog><metadata>
-<keywords><indexterm>XA<indexterm>Using with the DB2 Universal JDBC Driver</indexterm></indexterm>
+<keywords><indexterm>XA<indexterm>Using with the Network Client driver</indexterm></indexterm>
 </keywords>
 </metadata></prolog>
 <conbody>
 <section><p>You can access XA support for the Network Server by using the
-DB2 Universal JDBC Driver's XA DataSource interface (<codeph>com.ibm.db2.jcc.DB2XADataSource</codeph>).</p></section>
+Network Client driver's XA DataSource interface (<codeph>org.apache.derby.jdbc.ClientXADataSource</codeph>).</p></section>
 <example><p>The following example illustrates how to obtain an XA connection
-with the DB2 Universal JDBC Driver:</p><codeblock>XAConnection xaConnection = null;
+with the Network Client driver:</p><codeblock>XAConnection xaConnection = null;
 Connection conn = null;
 
-	String driver = "com.ibm.db2.jcc.DB2DataSource";
-	DB2XADataSource ds = new DB2XADataSource();
+	String driver = "org.apache.derby.jdbc.ClientDataSource";
+	ClientXADataSource ds = new ClientXADataSource();
 
 		ds.setDatabaseName (dbname + ";create=true");
 
-ds.setRetrieveMessagesFromServerOnGetMessage(true);
-
 ds.setServerName("localhost");
 
 ds.setPortNumber(1527);
 
-ds.setDriverType(4); //Network Server requires JDBC type 4 driver
-
 Class.forName(driver);
 
 	xaConnection = ds.getXAConnection("auser", "shhhh");

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26