Received: from shaked.cc.openu.ac.il (shaked.cc.openu.ac.il [147.233.145.65]) by hub.org (8.9.1/8.9.1) with ESMTP id IAA19298 for ; Sun, 6 Dec 1998 08:33:59 -0500 (EST) (envelope-from herouth@oumail.openu.ac.il) Received: from [147.233.159.109] (herouth@mac-herouth.pc.openu.ac.il [147.233.159.109]) by shaked.cc.openu.ac.il (8.8.8/8.8.8) with ESMTP id PAA06113; Sun, 6 Dec 1998 15:33:45 +0200 (IST) X-Sender: herouth@shaked.cc.openu.ac.il Message-Id: In-Reply-To: References: <2637.912614023@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sun, 6 Dec 1998 15:35:02 +0200 To: Peter T Mount From: Herouth Maoz Subject: Re: [INTERFACES] Using Postgres's NOTIFY/LISTEN Cc: pgsql-interfaces@postgresql.org At 20:49 +0200 on 2/12/98, Peter T Mount wrote: > > The 1.1 AWT uses a listener model for it's events. I was thinking of > creating an Interface that defines a method that is called when a notify > occurs. Then, the client can create a class that implements this > Interface, and simply calls an addListener() method in the driver. Then, > any notify's received will cause the listener to be called. Hmm, wouldn't using the AWT cause the driver to attempt to initialize the X windows or something? I know some servlet implementations (Netscape's, for one) do not support any AWT calls, assuming that when you work through the web, you don't have an X server, which is true. Can't it be done with threads, Object.notify() etc.? Herouth -- Herouth Maoz, Internet developer. Open University of Israel - Telem project http://telem.openu.ac.il/~herutma