Re: getNotifications

From: Maciek Sakrejda <m(dot)sakrejda(at)gmail(dot)com>
To: k f <kfan(dot)b1(at)gmail(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: getNotifications
Date: 2012-08-17 17:16:02
Message-ID: CAOtHd0Dj27PtrO3BMFQdo-P9NDURG2ypuxG0ZhvVDC_DBvuGNA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Please keep the list copied: if I stop feeling helpful, maybe someone
else can pick it up ;)

Your code is correct:

maciek(at)gamera:~/Downloads$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.3) (6b24-1.11.3-1ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
# the above means we'll build a jdbc4 jar
maciek(at)gamera:~/code/aux/pgjdbc$ git checkout REL9_0_801
...
maciek(at)gamera:~/code/aux/pgjdbc$ ant clean jar
...
maciek(at)gamera:~/Downloads$ javac -cp
/home/maciek/code/aux/pgjdbc/jars/postgresql.jar NotificationTest.java
maciek(at)gamera:~/Downloads$ java -cp
/home/maciek/code/aux/pgjdbc/jars/postgresql.jar:. NotificationTest
testing...
Got notification: mymessage
testing...
testing...
Got notification: mymessage

I think it's maybe a classpath issue? How is your environment set up /
how are you referencing the postgresql.jar (yes, that's the driver)?

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message kfan 2012-08-17 17:22:34 Re: getNotifications
Previous Message Maciek Sakrejda 2012-08-17 17:03:57 Re: getNotifications