Tom Robinson wrote:
I'm doing pretty much the same thing (starting up Jetty/Simple within
the Rhino shell) in the Jack project (like Ruby's Rack for JavaScript:
http://github.com/tlrobinson/jack). I've briefly tried some concurrent
requests, and as far as I can tell there's no problem, it just works.
Multiple concurrent requests use the same scope, and I assume
different contexts as you've mentioned.

I put some debugging lines into

static final Context enter(Context cx, ContextFactory factory)

in org.mozilla.javascript.Context

This method is called, and a new Context created for each http Request /
Thread. It is also called when the same Thread (identified by Id) is called for subsequent requests, which I guess indicates that the server must scrub each Thread from the pool after a request is serviced.

Seems to me that this setup works pretty well.

You should consider using Jack ;)

Looks excellent! Will do. And yes, more or less what I've been doing.
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to