Re: getNotifications - Mailing list pgsql-jdbc

From Maciek Sakrejda
Subject Re: getNotifications
Date
Msg-id CAOtHd0Dj27PtrO3BMFQdo-P9NDURG2ypuxG0ZhvVDC_DBvuGNA@mail.gmail.com
Whole thread Raw
In response to getNotifications  (kfan <kfan.b1@gmail.com>)
Responses Re: getNotifications  (kfan <kfan.b1@gmail.com>)
List pgsql-jdbc
Please keep the list copied: if I stop feeling helpful, maybe someone
else can pick it up ;)

Your code is correct:

maciek@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@gamera:~/code/aux/pgjdbc$ git checkout REL9_0_801
...
maciek@gamera:~/code/aux/pgjdbc$ ant clean jar
...
maciek@gamera:~/Downloads$ javac -cp
/home/maciek/code/aux/pgjdbc/jars/postgresql.jar NotificationTest.java
maciek@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)?


pgsql-jdbc by date:

Previous
From: Maciek Sakrejda
Date:
Subject: Re: getNotifications
Next
From: kfan
Date:
Subject: Re: getNotifications