From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: deanhiller <dean.hiller@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: XA DataSource ServerName not working
Date: Fri, 22 Jan 2010 01:06:07 +0200
Message-ID: <4B58DDDF.2070301@enterprisedb.com> (raw)
In-Reply-To: <250731b5-9181-407b-b3eb-42d202fc2522@c29g2000yqd.googlegroups.com>
References: <250731b5-9181-407b-b3eb-42d202fc2522@c29g2000yqd.googlegroups.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: heikki.linnakangas@enterprisedb.com, dean.hiller@gmail.com
Subject: Re: XA DataSource ServerName not working
In-Reply-To: <4B58DDDF.2070301@enterprisedb.com>
References: <250731b5-9181-407b-b3eb-42d202fc2522@c29g2000yqd.googlegroups.com> <4B58DDDF.2070301@enterprisedb.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox