Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id D6B911337B47 for ; Sun, 16 Jan 2011 07:08:48 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 98605-02 for ; Sun, 16 Jan 2011 11:08:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id 1FF521337B69 for ; Sun, 16 Jan 2011 07:08:40 -0400 (AST) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PeQTP-0002pc-7A for pgsql-jdbc@postgresql.org; Sun, 16 Jan 2011 12:08:39 +0100 Received: from ppp-93-104-191-20.dynamic.mnet-online.de ([93.104.191.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Jan 2011 12:08:39 +0100 Received: from spam_eater by ppp-93-104-191-20.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Jan 2011 12:08:39 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Howto access payload of notify? Date: Sun, 16 Jan 2011 12:08:34 +0100 Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ppp-93-104-191-20.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_RP_MATCHES_RCVD=-0.01, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201101/35 X-Sequence-Number: 21367 Clemens Eisserer wrote on 16.01.2011 11:51: > Hi, > > I would like to use the new feature of submitting payload with notify, > how can I access this data when listening with an jdbc client. > > PGNotification seems to lack a getPayload() method. > > Thank you in advance, Clemens > the method is called getParameter(): This is the Javadoc for it: Returns additional information from the notifying process. This feature has only been implemented in server versions 9.0 and later, so previous versions will always return an empty String. Regards Thomas