MySQL Forums
Forum List  »  Triggers

Re: application callback?
Posted by: Mark Matthews
Date: April 14, 2005 10:57AM

joe conery wrote:
> I have a java app with the JDBC connector. Is
> there any way that I could use a trigger (or
> anything else) to have mysql invoke a callback
> function in my java app? I'm trying to refresh a
> JTable whenever the db is written to. I don't want
> to needlessly do a screen refresh every 20 secs.
> or so, just to keep it up to date. I was hoping
> the trigger could call back to a function in my
> app when a certain table on-write - thanks.

Joe,

You _could_ use any language to write a UDF (judf from http://freshmeat.net/projects/judf/ springs to mind here, since that would allow you to write a UDF in Java) that makes a socket connection to your application, or enqueues a JMS message, etc. to do the notification.

-Mark

Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools
Oracle
http://www.mysql.com/products/enterprise/monitor.html

Options: ReplyQuote


Subject
Views
Written By
Posted
4405
April 14, 2005 08:10AM
3104
April 14, 2005 08:18AM
Re: application callback?
6325
April 14, 2005 10:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.