Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: How to notify JBoss J2EE application in a trigger or rule???

0 views
Skip to first unread message

Markus Schaber

unread,
Jun 22, 2006, 7:04:21 AM6/22/06
to
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

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Markus Schaber

unread,
Jun 22, 2006, 7:34:56 AM6/22/06
to
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

0 new messages