pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedgetHost()
4+ messages / 2 participants
[nested] [flat]
* getHost()
@ 2009-02-03 21:53 Andrew Lazarus <andrew@pillette.com>
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Lazarus @ 2009-02-03 21:53 UTC (permalink / raw)
To: pgsql-jdbc
Is there a particular reason that there is no
getHost()
delegated from AbstractJDBC*Connection to the
ProtocolConnection? I have been unable to find a way to get the
hostname.
Attachments:
vCard.VCF (text/x-vcard, 377B) download
BEGIN:VCARD
VERSION:2.1
N:Lazarus;Andrew;;;Ph.D.
FN:Andrew Lazarus, Ph.D.
EMAIL;PREF;INTERNET:andrew@pillette.com
TITLE:Director of R&D
ADR;WORK:;800-366-0688;3028 Fillmore Street;San Francisco;CA;94123;USA
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:800-366-0688=0D=0A3028 Fillmore S=
treet=0D=0ASan Francisco=0D=0ACA=0D=0A94123=0D=0AUSA
X-GENDER:Male
REV:18991230T080000Z
END:VCARD
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: getHost()
@ 2009-02-05 23:21 Kris Jurka <books@ejurka.com>
parent: Andrew Lazarus <andrew@pillette.com>
0 siblings, 1 reply; 4+ messages in thread
From: Kris Jurka @ 2009-02-05 23:21 UTC (permalink / raw)
To: Andrew Lazarus <andrew@pillette.com>; +Cc: pgsql-jdbc
On Tue, 3 Feb 2009, Andrew Lazarus wrote:
> Is there a particular reason that there is no
>
> getHost()
>
> delegated from AbstractJDBC*Connection to the
> ProtocolConnection? I have been unable to find a way to get the
> hostname.
I'm not sure why you would need it. The AbstractJdbcNConnection
interfaces are not meant to be publicly exposed. In theory you shouldn't
be using anything that is defined outside of the
org.postgresql.PGConnection interface.
Kris Jurka
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: getHost()
@ 2009-02-06 05:48 Andrew Lazarus <andrew@pillette.com>
parent: Kris Jurka <books@ejurka.com>
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Lazarus @ 2009-02-06 05:48 UTC (permalink / raw)
To: Kris Jurka <books@ejurka.com>; +Cc: pgsql-jdbc
>> Is there a particular reason that there is no
>>
>> getHost()
>>
>> delegated from AbstractJDBC*Connection to the
>> ProtocolConnection? I have been unable to find a way to get the
>> hostname.
KJ> I'm not sure why you would need it. [....]
I wanted to instantiate a JPA/TopLink EntityManager with the same
host/database as an existing JDBC Connection. If not, then two
different objects have to search properties for the parameters.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: getHost()
@ 2009-02-06 15:54 Kris Jurka <books@ejurka.com>
parent: Andrew Lazarus <andrew@pillette.com>
0 siblings, 0 replies; 4+ messages in thread
From: Kris Jurka @ 2009-02-06 15:54 UTC (permalink / raw)
To: Andrew Lazarus <andrew@pillette.com>; +Cc: pgsql-jdbc
On Thu, 5 Feb 2009, Andrew Lazarus wrote:
> I wanted to instantiate a JPA/TopLink EntityManager with the same
> host/database as an existing JDBC Connection. If not, then two
> different objects have to search properties for the parameters.
>
Seems like you would also need to know the port number and the password as
well. I doubt it's a good idea to be exposing the password, so I'm still
not convinced there's a real good use for this.
Kris Jurka
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2009-02-06 15:54 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-02-03 21:53 getHost() Andrew Lazarus <andrew@pillette.com>
2009-02-05 23:21 ` Kris Jurka <books@ejurka.com>
2009-02-06 05:48 ` Andrew Lazarus <andrew@pillette.com>
2009-02-06 15:54 ` Kris Jurka <books@ejurka.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