Re: Database notification
- From: Mark Matthews <mark@xxxxxxxxx>
- Date: Fri, 29 Apr 2005 09:12:08 -0500
frebe wrote:
>>No, triggers start stored procedures on the server side, but nothing
>
> on
>
>>the client side.
>
>
> Yes, that stored procedure can send a message (like JMS
> publish/subscribe) to the client. I don't know what kind of languages
> MySQL supports for stored procedures. If it doesn't support java, you
> might consider switching to a database that support java.
MySQL-5.0 supports triggers, and while it doesn't yet support Java
stored procedures (scheduled for 5.1), you can write UDFs in any
language that can produce a DLL and then have the trigger call your UDF.
One of our guys (before he joined MySQL) wrote a UDF that uses JNI to
let people write their UDFs in Java, so relatively easily you could put
triggers on tables that then use Java-based messaging of one sort or
another to notify the client.
The package (jUDF) is available here:
http://freshmeat.net/projects/judf/?topic_id=66
-Mark
.
- References:
- Database notification
- From: jwillans
- Re: Database notification
- From: frebe
- Re: Database notification
- From: Paul van Rossem
- Re: Database notification
- From: frebe
- Database notification
- Prev by Date: Re: Database notification
- Next by Date: URGENT!! Joinable Interface problem
- Previous by thread: Re: Database notification
- Next by thread: URGENT!! Joinable Interface problem
- Index(es):
Relevant Pages
|
|