Hi all,
I'm having trouble with the running a restxq API, set up as either a stand alone app (using basexhttp) or running the servlet in jetty.
When I make a request, the server will lazily load in the requested content using a small java library that I've built which can take quite a while, and unfortunately it completely blocks waiting for this request to complete. This means that if I make a request for content which is already loaded, which should return in a couple of milliseconds, it instead waits for the downloading of the first request to complete before returning.
I'm sure it's something simple that I'm missing in the config somewhere, but I have the threadpool parameters set up in my jetty.xml config file but it doesn't seem to make any difference.
Is this expected behavior? I can't imagine any HTTP server would ever be designed to be single threaded...
Any help is welcome, I've been trying to figure this out for days now.
Thanks, Joe