Skip site navigation (1) Skip section navigation (2)

Re: Java LISTEN/NOTIFY client library work-around

From: Joel Jacobson <joel(at)gluefinance(dot)com>
To: Jan Urbański <wulczer(at)wulczer(dot)org>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Java LISTEN/NOTIFY client library work-around
Date: 2011-11-30 20:13:25
Message-ID: 357670BB-E029-4C33-AE60-5FFD5C9571A0@gluefinance.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-jdbc
On 30 nov 2011, at 13:27, Jan Urbański <wulczer(at)wulczer(dot)org> wrote:

> On 30/11/11 13:07, Joel Jacobson wrote:
>> Hi,
>> 
>> As you know, LISTEN/NOTIFY is broken in the Java client library. You have
>> to do a SELECT 1 in a while-loop to receive the notifications.
>> 
>> http://jdbc.postgresql.org/documentation/head/listennotify.html
>> 
>> Is there some other library with a proper implementation where you don't
>> have to spam the database with queries to get the notifications?
> 
> You mean a Java library? If Java is not a requirement, the psycopg2 Python library supports notifies 

I need a Java-library for this

> 
> Cheers,
> Jan

In response to

pgsql-hackers by date

Next:From: Jesper KroghDate: 2011-11-30 20:15:40
Subject: Accounting for toast in query planner. (gin/gist indexes).
Previous:From: Kevin GrittnerDate: 2011-11-30 19:53:02
Subject: Re: autovacuum and default_transaction_isolation

pgsql-jdbc by date

Next:From: Craig RingerDate: 2011-11-30 23:46:47
Subject: Re: Bug when retrieving money datatype.
Previous:From: Tom LaneDate: 2011-11-30 14:36:50
Subject: Re: Bug when retrieving money datatype.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group