Re: [spr26540] aserve and xmlrpc (multiple aserve's running)

John Foderaro <[email protected]> Thu, 22 Aug 2002 09:02:40 -0700
Newsgroups gmane.lisp.open-source.franz
Message-ID <[email protected]>
 The short answer to your question is that you should pass the argument

		:server :new

 to net.aserve:start if you want to start a second indepent aserve
in your Lisp.   This should have been documented.  I'll
have to fix that.



 The long answer to your question is that each instance of
allegroserve running in the lisp is associated with a distinct
instance of an object of class wserver.   The variable
net.aserve:*wserver* contains the current instance.
If you call net.aserve:start with no :server argument then
AllegroServe will use the value of net.aserve:*wserver* as 
the wserver object.  If that object has a running AllegroServe
associated with it then that AllegroServe will be shut down
before a new one is started.


 The AllegroServe test suite  test/t-aserve.cl  starts three
instances of AllegroServe at one point during the testing.
You might want to view that file to see how that's done.