X-Original-To: pgsql-interfaces-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 91CC39F9FE3; Thu, 22 Jun 2006 08:34:54 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 64671-03; Thu, 22 Jun 2006 08:34:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 033D69F9ED6; Thu, 22 Jun 2006 08:34:48 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (p549D15A0.dip0.t-ipconnect.de [84.157.21.160]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 462A665874; Thu, 22 Jun 2006 13:36:21 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id E6E411852EF72; Thu, 22 Jun 2006 13:34:56 +0200 (CEST) Message-ID: <449A8060.4080609@logix-tt.com> Date: Thu, 22 Jun 2006 13:34:56 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Thunderbird 1.5.0.2 (X11/20060516) MIME-Version: 1.0 To: Joost Kraaijeveld Cc: pgsql-jdbc@postgresql.org, pgsql-interfaces@postgresql.org Subject: Re: [JDBC] How to notify JBoss J2EE application in a trigger or References: <1150973953.6071.20.camel@localhost> <449A7935.4090406@logix-tt.com> <1150974589.6071.25.camel@localhost> In-Reply-To: <1150974589.6071.25.camel@localhost> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/30 X-Sequence-Number: 6171 Hi, Joost, Joost Kraaijeveld wrote: >>> Does anyone have an (working???) example or a pointer to an example of >>> how to do this? >> Hmm, did you try the GCJ-based pljava variant? > No, I did not. As far as I know, I *must* use the Sun JVM for JBoss, and > I don't know if and how I can mix the GJC and Sun Java environment. Is > that possible with (almost) no hassle and readme's? I guess that you want to use CORBA or Java Remote Interface between PostgreSQL and JBoss, and those should abstract between differend JVMs. >> And, as an workaround, have an extra bean sitting in the JBoss that >> LISTENs, and the trigger in SQL simply NOTIFYing it? > Can you elaborate on that? What do you mean with LISTEN and NOTIFY? http://www.postgresql.org/docs/8.1/interactive/sql-listen.html http://www.postgresql.org/docs/8.1/interactive/sql-notify.html HTH, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org