I wrote a Java application that should be running or waking up when something happens in the database. For example, insertion into a user table should trigger the sending of usual greetings, passwords, ... letters.
What is the best common practice? I can write my application so that it executes the following request: say every second:
select mail from user where mail_sent = false
But this is a survey, and I would like to avoid it. Is there a way to launch or launch my Java (push) application triggered by a change in the database?
Hooray!
Japer D.
source share