Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id BD0AA634046 for ; Thu, 21 Jan 2010 19:06:24 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 38512-03 for ; Thu, 21 Jan 2010 23:06:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og106.obsmtp.com (exprod7og106.obsmtp.com [64.18.2.165]) by mail.postgresql.org (Postfix) with SMTP id 9B44F63664E for ; Thu, 21 Jan 2010 19:06:13 -0400 (AST) Received: from source ([209.85.219.227]) by exprod7ob106.postini.com ([64.18.6.12]) with SMTP ID DSNKS1jd45nHnwELUEjrgHU9+nSnJpS4ddi7@postini.com; Thu, 21 Jan 2010 15:06:13 PST Received: by mail-ew0-f227.google.com with SMTP id 27so665815ewy.16 for ; Thu, 21 Jan 2010 15:06:11 -0800 (PST) Received: by 10.213.44.5 with SMTP id y5mr1902388ebe.59.1264115170818; Thu, 21 Jan 2010 15:06:10 -0800 (PST) Received: from ?192.168.1.117? ([88.195.103.165]) by mx.google.com with ESMTPS id 7sm2301750eyg.33.2010.01.21.15.06.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 Jan 2010 15:06:09 -0800 (PST) Message-ID: <4B58DDDF.2070301@enterprisedb.com> Date: Fri, 22 Jan 2010 01:06:07 +0200 From: Heikki Linnakangas Organization: EnterpriseDB User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 To: deanhiller CC: pgsql-jdbc@postgresql.org Subject: Re: XA DataSource ServerName not working References: <250731b5-9181-407b-b3eb-42d202fc2522@c29g2000yqd.googlegroups.com> In-Reply-To: <250731b5-9181-407b-b3eb-42d202fc2522@c29g2000yqd.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/65 X-Sequence-Number: 20261 deanhiller wrote: > I am using jboss 5.1 with postgres XA Datasource. i have the > ServerName in the postgres-xa-ds.xml file but when the driver is used, > it is using my local computer's ip to connect to the database instead > of the one in postgres-xa-ds.xml. When I change ServerName to URL or > someething else, I get an exception from jboss saying setURL method > does not exist on postgres's XADatasource, so i believe the name is > being set but not used by postgres XA Datasource for some reason. There is no URL property on PostgreSQL's XADataSource implementation, so that won't work. ServerName is the property you want to set, but it seems you're doing it wrong somehow. Please post your postgres-xa-ds.xml file if you need further assistance, so that others can see what exactly is going on there. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com