pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: k f <kfan.b1@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: PGConnection getNotifications
Date: Sat, 18 Aug 2012 11:09:08 +0800
Message-ID: <502F0754.8000406@ringerc.id.au> (raw)
In-Reply-To: <CAJFbeUC4ODe5=b8v5qXhf506qXLMzzj1G+fAVG9nMRX7KNiXZQ@mail.gmail.com>
References: <CAJFbeUC4ODe5=b8v5qXhf506qXLMzzj1G+fAVG9nMRX7KNiXZQ@mail.gmail.com>

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

view thread (3+ messages)  latest in thread

Message-ID: <502F0754.8000406@ringerc.id.au>
Permalink:  ../502F0754.8000406@ringerc.id.au/
Also on:    postgresql.org/message-id/502F0754.8000406@ringerc.id.au

 · 

reply

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: ringerc@ringerc.id.au, kfan.b1@gmail.com
  Subject: Re: PGConnection getNotifications
  In-Reply-To: <502F0754.8000406@ringerc.id.au>
  References: <CAJFbeUC4ODe5=b8v5qXhf506qXLMzzj1G+fAVG9nMRX7KNiXZQ@mail.gmail.com> <502F0754.8000406@ringerc.id.au>

* 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