Rahul Asanikar wrote: > > If I don't let the service method to return it works. >
Mike Marchywka wrote: > > So, the only real restriction imposed by this part of the spec is that > you can't let service() terminate until your other thread is done with > ois? > Well, here's the thing: there's not really any point in spawning a thread to do work when you just have the original thread wait until it's finished. Just have a loop in the original thread, right? No new thread at all. It's probably safest to assume that spawning threads in serlvets is evil should be avoided. That's not entirely true, but it's a good working assumption. -- Christopher St. John [EMAIL PROTECTED] DistribuTopia http://www.distributopia.com ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html