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 8297B9F9FE3; Thu, 22 Jun 2006 08:04:28 -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 59144-06; Thu, 22 Jun 2006 08:04:14 -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 A17A09F9ED6; Thu, 22 Jun 2006 08:04:15 -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 09E5A65874; Thu, 22 Jun 2006 13:05:47 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id F15701852EF72; Thu, 22 Jun 2006 13:04:21 +0200 (CEST) Message-ID: <449A7935.4090406@logix-tt.com> Date: Thu, 22 Jun 2006 13:04:21 +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 rule??? References: <1150973953.6071.20.camel@localhost> In-Reply-To: <1150973953.6071.20.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/29 X-Sequence-Number: 6170 Hi, Hoost, Joost Kraaijeveld wrote: > I want a PostgreSQL trigger or rule that notifies a JBoss deployed J2EE > application of a certain event. > > I was hoping that pljava would work, but for some -yet unknown to me- > reason, it does not work on my Debian AMD64 with Sun 1.5.0-7 JVM. > > 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? And, as an workaround, have an extra bean sitting in the JBoss that LISTENs, and the trigger in SQL simply NOTIFYing it? 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