On Jan 23,  5:29pm, Ian Bicking wrote:
> Subject: Re: [Webware-discuss] factory servlet
> On Thu, 2003-01-23 at 16:18, Randy Heiland wrote:
> > In my ongoing quest to make myself less ignorant in WebKit, could someone
point
> > me to docs discussing ways of creating a factory servlet?  I now have a
working
> > subclass of XMLRPCServlet, but would like to make it usable by multiple
users.
>
> I don't think a factory is what you want.  The factory creates the
> servlet -- you'd create a new factory to create a whole new type of
> servlet.  Like if you wanted to use Cheetah Templates, or use some form
> or modified HTML file, or a servlet written in Perl.  There's no
> documentation for factories, you'd just have to read the code.
>
> But I don't think you want a factory, you are just creating a
> specialized class.  If you want other people to be able to use it you
> should just put it somewhere they can import it, and they can use it as
> the superclass for their own servlets.  Even XMLRPCServlet is just a
> subclass of Servlet, it doesn't have its own factory.
>

Ian,

Thanks for the reply and I apologize for my continuing ignorance.  Here is my
current situation... I've written a servlet, call it MYServlet, which is a
subclass of XMLRPCServlet.  In that servlet, I have a method that does a Python
'exec' and adds a variable to the Python globals().  From a Java client, I
connect to MYServlet and execute some cmd, say, foo=1.  From another client, I
connect to MYServlet and execute foo=2.  When I check the value of foo from the
first client, the value of foo is 2.  What I want is to be able to connect to
the same MYServlet (same URL addr) from different clients and have independent
Python interpreters running.  I thought this would entail a factory servlet
somehow.

I'm lacking some basic understanding about Webware/WebKit.

I should also mention that I'm running the 'AppServer' which seems to fire off
nine threads of 'python Launch.py ThreadedAppServer'

thanks,
Randy


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to