Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 49736 invoked from network); 27 Sep 2006 02:37:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Sep 2006 02:37:22 -0000 Received: (qmail 97357 invoked by uid 500); 27 Sep 2006 02:37:21 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 97321 invoked by uid 500); 27 Sep 2006 02:37:21 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 97310 invoked by uid 99); 27 Sep 2006 02:37:20 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Sep 2006 19:37:20 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=Mick.Jordan@sun.com; spf=permerror X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: error (idunn.apache.osuosl.org: domain sun.com from 204.153.12.50 cause and error) Received: from [204.153.12.50] ([204.153.12.50:44622] helo=mail-mta.sunlabs.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 21/61-21307-ED3E9154 for ; Tue, 26 Sep 2006 19:37:19 -0700 Received: from mail.sunlabs.com ([152.70.2.186]) by dps.sfvic.sunlabs.com (Sun Java System Messaging Server 6.1 HotFix 0.02 (built Aug 25 2004)) with ESMTP id <0J6800M80CM27Y00@dps.sfvic.sunlabs.com> for derby-user@db.apache.org; Tue, 26 Sep 2006 19:37:14 -0700 (PDT) Received: from [129.150.23.184] by mail.sunlabs.com (Sun Java System Messaging Server 6.1 HotFix 0.02 (built Aug 25 2004)) with ESMTPSA id <0J6800BIACM1B720@mail.sunlabs.com> for derby-user@db.apache.org; Tue, 26 Sep 2006 19:37:13 -0700 (PDT) Date: Tue, 26 Sep 2006 19:37:12 -0700 From: Mick Jordan Subject: Help with creating XA transaction Ids To: derby-user@db.apache.org Message-id: <4519E3D8.2090200@sun.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm trying to run a distributed transaction on two Derby instances using a my application program as the transaction manager. I'm stuck on how to create a global transaction id that I can pass to the start method of the XAResource object that I get from the XAConnection object (an instance of NetXAResource). I've searched for examples but both that I found used external classes to create the Xid. Looking at the Derby code the most likely candidate seemed to be org.apache.derby.client.ClientXid but I have no idea what to pass to the constructor. The best example I found on an IBM site used com.ibm.db2.jcc.DB2Xid. I've not found any Derby-specific examples of how to create an Xid. Any pointers much appreciated. Thanks Mick Jordan