JSP and scheduling the execution of an exe

i'll try to explain by parts, i have a web aplication made in servlets and JSPs, but i haven't unify the next, (i have a class that call an exe and then do some other things, ok, but i would like to schedule this task), i heard that java.util.timer do something like i want to do, so my question is how to execute this scheduler in JSP leaving the thread as daemon or in background although users leave a web sesion, i hope this help to understand me, thanks, any idea?.

[479 byte] By [omm79a] at [2007-11-26 14:53:28]
# 1

I think you should put the code that calls the scheduler in a Java class and not directly inside the JSP as it creates very messy code to have Java/ Business logic written directly inside JSP pages.

However, if you still want to do this inside the JSP you can write a scriplet inside <% %>

Google java.util.timer , for examples.

appy77a at 2007-7-8 8:41:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...