jon * wrote:

> > Can someone straighten me out. I thought that with each
> > instance of a connection to an "HttpServlet" lived in
> > a separate thread. When I access the same servlet,
> > if the first one is doing a long query, the other one
> > is stuck waiting until the first is done. What do I have
> > to do avoid this problem? I'd appreciate some guidance. I
> > must be missing something simple as this has to be
> > a very common issue.
>
> Make sure you are not implementing SingleThreadModel.
>

Also, make sure you did not declare your service() or doGet()/doPost()
method  to be "synchronized".  The same goes for any other method that
might have been called (but not yet returned from) on your long query,
and then called again on the second request.

Craig McClanahan




----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://www.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to