http://www.theserverside.net/tt/articles/showarticle.tss?id=ManageAppProcesses
Good stuff, although the example code didn't compile. That was fixed easily though, and it's a good first example to demonstrate in a presentation ;-)