Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 37774 invoked from network); 9 Feb 2006 13:37:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Feb 2006 13:37:08 -0000 Received: (qmail 72636 invoked by uid 500); 9 Feb 2006 13:37:06 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 72374 invoked by uid 500); 9 Feb 2006 13:37:05 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 72363 invoked by uid 99); 9 Feb 2006 13:37:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2006 05:37:04 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [202.43.216.207] (HELO web15404.mail.cnb.yahoo.com) (202.43.216.207) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 09 Feb 2006 05:37:04 -0800 Received: (qmail 60817 invoked by uid 60001); 9 Feb 2006 13:36:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=LnGOY9a5psH4d7jOSWo6AMebZBa8aSdAo7ZI5bQZIc6UyxMX09xdJldfxjeMKBpcWPPckQjxZY7XoDDrGIM9J/QCAhNsF8Jg3qw3Oq+vL7WgXcE/chkHDLzRsCUBvykabZcjVgZ+eAx/tPAOWjk9U0Uuz8K0p/IrpRZHgtxYUxk= ; Message-ID: <20060209133628.60815.qmail@web15404.mail.cnb.yahoo.com> Received: from [218.90.30.90] by web15404.mail.cnb.yahoo.com via HTTP; Thu, 09 Feb 2006 21:36:28 CST Date: Thu, 9 Feb 2006 21:36:28 +0800 (CST) From: Jack Wang Subject: Re: Tomcat MySQL XA support To: user@geronimo.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Does MySQL5.0.18 suport XA in Tomcat 5.5 ? I do a XA test in tomcat with only a jsp file and necessary jars. The jsp is as: --------------------------------------------- <% Context ctx = new InitialContext(); com.mysql.jdbc.jdbc2.optional.MysqlXADataSource xads = new com.mysql.jdbc.jdbc2.optional.MysqlXADataSource(); xads.setServerName("localhost"); xads.setDatabaseName("test"); xads.setPortNumber(3306); XAConnection xcon = xads.getXAConnection("root","password"); Connection con = xcon.getConnection(); System.out.println("I get the correct xads and the con=" + con); System.out.println("Bind xads to InitialContext"); ctx.bind("myXADB", xads); MysqlXADataSource mysqlXADataSource = (MysqlXADataSource)ctx.lookup("myXADB"); System.out.println("Get the null MysqlXADataSource from ctx xads=" + mysqlXADataSource ); %> --------------------------------------------- Why mysqlXADataSource get from the InitialContext is null ? Is this why I can not configure the XADataSource in tomcat in the previous mail ? I have waste much time in this problem, please help. Thanks. Wang Jun ___________________________________________________________ �Ż�1G�������ٷְٷ������� http://cn.mail.yahoo.com/