Take a look at https://gist.github.com/1091426. Is that what you had in mind?
Two important things to keep in mind:
* The get (http) method must be annotated with the @Asynchronous annotation (the framework would otherwise finish the http request, and send back the response.)
* The HttpResponse.finish() that you have to invoke explicitly (for a synchronous (http) method this is actually what is done by the framework) must be invoked by the
ioloop thread.
HTH
Roger Schildmeijer
No problem.
If you have a task that needs to be scheduled and executed periodically (like every second, or fifth or tenth second) you should take a look at the PeriodicCallback class.
// Roger