wakydevil1 0 Newbie Poster

I am sorry if this question is really basic.
I was creating a Web Service which sets a watch on a database trigger. And when the trigger fires, I get an email. I couldnt find anything which would help me send an email directly from MYSQL using some kind of a stored procedure. So in Java, I used the cron4j scheduler like cron in Linux, which periodically checks if trigger is fired.
Problem is, I want the process which spawned cron to finish and return while this scheduler(cron4j) runs in background so that I dont have to keep the connection with my client running.

Thank You for reading.