I would to use com.sun.net.httpserver.HttpServer to do comet/cometd. I am wondering how tough it is to do it so that I can take the waiting connections off the thread and into some waiting queue.
Also, am I correct in that it looks like it is using nio?
Also, is there any better examples? I always get caught up in the terminology that the javadoc uses...
Thanks :)