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 AB8FE9F9FE3; Thu, 22 Jun 2006 08:09:59 -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 59774-05; Thu, 22 Jun 2006 08:09:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from obelix.askesis.nl (laudanum.demon.nl [82.161.125.16]) by postgresql.org (Postfix) with ESMTP id F02659F9ED6; Thu, 22 Jun 2006 08:09:51 -0300 (ADT) Received: obelix 172.31.0.1 from 172.31.1.1 172.31.1.1 via HTTP with MS-WebStorage 6.0.6249 Received: from panoramix by obelix; 22 Jun 2006 13:09:49 +0200 Subject: Re: [JDBC] How to notify JBoss J2EE application in a trigger or From: Joost Kraaijeveld To: Markus Schaber Cc: pgsql-jdbc@postgresql.org, pgsql-interfaces@postgresql.org In-Reply-To: <449A7935.4090406@logix-tt.com> References: <1150973953.6071.20.camel@localhost> <449A7935.4090406@logix-tt.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 22 Jun 2006 13:09:49 +0200 Message-Id: <1150974589.6071.25.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/25 X-Sequence-Number: 6166 Hi Markus, On Thu, 2006-06-22 at 13:04 +0200, Markus Schaber wrote: > 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? 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? > 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? TIA -- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 web: www.askesis.nl