[Mulgara-general] http services

Paul Gearon gearon at ieee.org
Thu Sep 10 13:01:51 UTC 2009


On Thu, Sep 10, 2009 at 6:35 AM, Gregg Reynolds <dev at mobileink.com> wrote:
> Hi,
>
> FYI some more stuff at WebApps.
>
> A few question:  it looks to me from the Jetty docs like Server.start() is
> synchronous.  I.e. it doesn't fork a child to run as a daemon.  So having
> two Server instances in HttpServices.java looks funny - only one can run at
> a time, no?

No, it creates a new thread and returns pretty quickly.

> Also, shouldn't it be one server, two connectors, instead of two servers?
> Aren't containers supposed to run multiple servlets?  Or am I getting
> tripped up by the naming - is a Jetty "Server" a servlet container?

I think I originally did it thinking to make the systems as isolated
as possible, but I may have been mistaken. I'll take another look at
it.

Paul



More information about the Mulgara-general mailing list