pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedPGConnection getNotifications
3+ messages / 3 participants
[nested] [flat]
* PGConnection getNotifications
@ 2012-08-17 15:32 k f <kfan.b1@gmail.com>
2012-08-18 03:09 ` Re: PGConnection getNotifications Craig Ringer <ringerc@ringerc.id.au>
2012-08-18 18:10 ` Re: PGConnection getNotifications kfan <kfan.b1@gmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: k f @ 2012-08-17 15:32 UTC (permalink / raw)
To: pgsql-jdbc
I'm a newbie to postgreSQL so please forgive my ignorance. I am able to
write code that connects/updates a database. I copied a simple
Notify/Listen example and for the life of me I can't seem to figure out why
the getNotifications() method for the PGConnection class is undefined? All
the examples use it and the docs say its available after version 7.3 or so.
I've installed PostgreSQL 9.1.4, and link to postgresql-9.0-801.jdbc4.jar
in my project. What piece am I missing?
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PGConnection getNotifications
2012-08-17 15:32 PGConnection getNotifications k f <kfan.b1@gmail.com>
@ 2012-08-18 03:09 ` Craig Ringer <ringerc@ringerc.id.au>
1 sibling, 0 replies; 3+ messages in thread
From: Craig Ringer @ 2012-08-18 03:09 UTC (permalink / raw)
To: k f <kfan.b1@gmail.com>; +Cc: pgsql-jdbc
On 08/17/2012 11:32 PM, k f wrote:
> I'm a newbie to postgreSQL so please forgive my ignorance. I am able
> to write code that connects/updates a database. I copied a simple
> Notify/Listen example and for the life of me I can't seem to figure
> out why the getNotifications() method for the PGConnection class is
> undefined? All the examples use it and the docs say its available
> after version 7.3 or so. I've installed PostgreSQL 9.1.4, and link to
> postgresql-9.0-801.jdbc4.jar in my project. What piece am I missing?
Please show your code, preferably a self-contained class that you can
post in its entirety.
At a guess, you're trying to use getNotifications() on the JDBC
java.sql.Connection object, without unwrapping it to get the underlying
PGConnection.
--
Craig Ringer
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PGConnection getNotifications
2012-08-17 15:32 PGConnection getNotifications k f <kfan.b1@gmail.com>
@ 2012-08-18 18:10 ` kfan <kfan.b1@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: kfan @ 2012-08-18 18:10 UTC (permalink / raw)
To: pgsql-jdbc
Thank you for responding to my post. It's great to have a place to go for
help! I've discovered my problem, I was also including the postGIS jar.
Modifying the jar order, postgres jar first has solved the problem. Never
expected a PGConnection class in there, or I'd have expected it to have the
same properties.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/PGConnection-getNotifications-tp5720230p5720324.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2012-08-18 18:10 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-08-17 15:32 PGConnection getNotifications k f <kfan.b1@gmail.com>
2012-08-18 03:09 ` Craig Ringer <ringerc@ringerc.id.au>
2012-08-18 18:10 ` kfan <kfan.b1@gmail.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