[hunchentoot-devel] Running multiple web application

Edi Weitz edi at agharta.de
Fri Apr 13 11:21:50 UTC 2007


On Fri, 13 Apr 2007 12:50:34 +0200, Pierre THIERRY <nowhere.man at levallois.eu.org> wrote:

> I suppose you could take advantage of the fact the global variables
> are dynamic ones:
>
> (defvar *dispatch-table1* ...)
> (defvar *dispatch-table2* ...)
>
> (let ((*dispatch-table* *dispatch-table1*))
>  (start-server :port 8001))
>
> (let ((*dispatch-table* *dispatch-table2*))
>  (start-server :port 8002))
>
> I didn't try this code, though, it's just what seemed natural to me
> for this use.

That won't work because of MP.  You'd have to use
implementation-specific facilities like this one:

  http://www.lispworks.com/documentation/lw50/LWRM/html/lwref-399.htm



More information about the Tbnl-devel mailing list