Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyIvS-0001d4-9x for pgsql-jdbc@arkaria.postgresql.org; Mon, 25 Feb 2019 16:16:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gyIvP-0003aG-Mp for pgsql-jdbc@arkaria.postgresql.org; Mon, 25 Feb 2019 16:16:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyCM3-0007Oj-Hf for pgsql-jdbc@lists.postgresql.org; Mon, 25 Feb 2019 09:15:19 +0000 Received: from mail2.dalim.com ([145.253.191.74]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyCLt-0007si-Gk for pgsql-jdbc@postgresql.org; Mon, 25 Feb 2019 09:15:12 +0000 Received: from localhost (localhost [127.0.0.1]) by mail2.dalim.com (Postfix) with ESMTP id 0AEBA16600B; Mon, 25 Feb 2019 10:15:02 +0100 (CET) Received: from mail2.dalim.com ([127.0.0.1]) by localhost (mail2.dalim.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ejis8qscFmxH; Mon, 25 Feb 2019 10:15:01 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail2.dalim.com (Postfix) with ESMTP id 5DDAD166010; Mon, 25 Feb 2019 10:15:01 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.9.2 mail2.dalim.com 5DDAD166010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dalim.com; s=C5CD85AE-9875-11E7-8F4E-7B36B4C25526; t=1551086101; bh=V0f+VZ5pX6KHTcMmf5mdhyIkey5w+0K1nqu3I+mSgp8=; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type; b=jvYf+FEHPqS1Tc1WkjF/e9FyGEO6q1UhAYHP2g3tbEq3k5irsVbA/idocj3zUElmQ woLL9jvxYuoGbabhLZ27EOLk7ZWWEq77KnBKZyAja4UFUV+FGsBrE+CnVYkCVDy1Zv oAJUb9bI0YVXdiWcibA3pOyFgV9EqXIEdExgSUvU= X-Amavis-Modified: Mail body modified (using disclaimer) - mail2.dalim.com X-Virus-Scanned: amavisd-new at dalim.com Received: from mail2.dalim.com ([127.0.0.1]) by localhost (mail2.dalim.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id chHJEtks1Fqi; Mon, 25 Feb 2019 10:15:01 +0100 (CET) Received: from mail2.dalim.com (localhost [127.0.0.1]) by mail2.dalim.com (Postfix) with ESMTP id 2D8FB16600B; Mon, 25 Feb 2019 10:15:01 +0100 (CET) Date: Mon, 25 Feb 2019 10:15:00 +0100 (CET) From: Philippe Ebersohl To: Dave Cramer Cc: List Message-ID: <1855336325.5176233.1551086100885.JavaMail.zimbra@dalim.com> In-Reply-To: References: <1058674020.3669693.1550249725415.JavaMail.zimbra@dalim.com> Subject: Re: A method to asynchronously LISTEN ? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5176232_1582071638.1551086100884" X-Mailer: Zimbra 8.6.0_GA_1153 (ZimbraWebClient - SAF12 (Mac)/8.6.0_GA_1153) Thread-Topic: A method to asynchronously LISTEN ? Thread-Index: HMFj4Op/2c2iNKpb+K9M+x7ER8u8Pw== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_5176232_1582071638.1551086100884 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello Dave, This is, sir, what we would like ! However looking at line 47-50 of pgjdbc/src/test/java/org/postgresql/test/jdbc2/NotifyTest.java How do we guaranty that the listener is called before the assertTrue() is fired ? stmt . executeUpdate( " NOTIFY mynotification " ); assertTrue(flag . get()); Best regards, Philippe From: "Dave Cramer" To: "Philippe Ebersohl" Cc: "List" Sent: Friday, 22 February, 2019 20:03:46 Subject: Re: A method to asynchronously LISTEN ? Hi Philippe, So this is old, but I didn't get much response https://github.com/pgjdbc/pgjdbc/pull/579 have a look and see if it works for you. If so we can look at putting it in. Dave Cramer davec@postgresintl.com www.postgresintl.com On Sat, 16 Feb 2019 at 03:36, Philippe Ebersohl < philippe.ebersohl@dalim.com > wrote: Hello, I checked the documentation and FAQ at jdbc.postgresql.org Is there a roadmap of feature implementation for the jdbc driver ? Are there plans to include something similar to the PGNotificationListener found in pgjdbc-ng? Which does not require to send SELECT to the postgres. We would if possible only use one postgresql jdbc driver. I hope I hit the right list for my questions. Thank you. Best regards, Philippe Ebersohl (null) ------=_Part_5176232_1582071638.1551086100884 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello Dave,

This is,= sir, what we would like !

Ho= wever looking at  line 47-50 of 

<= div>How do we guaranty that the listener is called before the assertTrue() = is fired ?

=
stmt.executeUpdate("NOT= IFY mynotification= ");


ass= ertTrue(flag.= get());

Best regards,
Philippe


<= /div>

From: "Dave Cramer" <pg@fastcrypt.com>
To: <= /b>"Philippe Ebersohl" <philippe.ebersohl@dalim.com>
Cc: "L= ist" <pgsql-jdbc@postgresql.org>
Sent: Friday, 22 February,= 2019 20:03:46
Subject: Re: A method to asynchronously LISTEN ?

Hi Philippe,
So this is old, but I didn't get much respons= e https://github.com/pgjdbc/pgjdbc/pull/579

have a look= and see if it works for you. If so we can look at putting it in.


On Sat, 16 Feb 2019 at 03:36, Philippe Ebersohl = <philip= pe.ebersohl@dalim.com> wrote:
Hello,
I checked the = documentation and FAQ at jdbc.postgresql.org
Is there a roadmap of feature= implementation for the jdbc driver ?

Are there plans to incl= ude something similar to the PGNotificationListener found in pgjdbc-ng= ?
Which does not require to send SELECT to the postgres.
We would if possible only use one postgresql jdbc driver.
<= br>
I hope I hit the right list for my questions.
Thank you.<= /div>
Best regards,
Philippe Ebersohl


(null)


------=_Part_5176232_1582071638.1551086100884--