pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
XA DataSource ServerName not working
2+ messages / 2 participants
[nested] [flat]

* XA DataSource ServerName not working
@ 2010-01-21 20:51 deanhiller <dean.hiller@gmail.com>
  2010-01-21 23:06 ` Re: XA DataSource ServerName not working Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
  0 siblings, 1 reply; 2+ messages in thread

From: deanhiller @ 2010-01-21 20:51 UTC (permalink / raw)
  To: pgsql-jdbc

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.

any idea what is going on here?

thanks,
Dean



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: XA DataSource ServerName not working
  2010-01-21 20:51 XA DataSource ServerName not working deanhiller <dean.hiller@gmail.com>
@ 2010-01-21 23:06 ` Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Heikki Linnakangas @ 2010-01-21 23:06 UTC (permalink / raw)
  To: deanhiller <dean.hiller@gmail.com>; +Cc: pgsql-jdbc

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2010-01-21 23:06 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-01-21 20:51 XA DataSource ServerName not working deanhiller <dean.hiller@gmail.com>
2010-01-21 23:06 ` Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>

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