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)?