Re: PGConnection getNotifications

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: k f <kfan(dot)b1(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: PGConnection getNotifications
Date: 2012-08-18 03:09:08
Message-ID: 502F0754.8000406@ringerc.id.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message kfan 2012-08-18 18:10:07 Re: PGConnection getNotifications
Previous Message kfan 2012-08-17 22:47:22 Re: getNotifications