Re: compile, marshal, exec

Alan Kennedy <[email protected]>
Newsgroups gmane.comp.lang.jython.user
Message-ID <CAMte6hm=fffevpv=Zzq6WQWX=-tj=abGaWUeYcHFa_QcT_t2JA@mail.gmail.com>
[Fernando]
> I'll look into modjy but I don't fully get WSGI. How does modjy know
which is the app to be called?

There are two different ways to configure it, both documented here

http://opensource.xhaus.com/projects/modjy/wiki/ModjyLocateCallables

[Fernando]
> And can modjy keep an app loaded all the time waiting for requests?

Yes, that's the whole point of modjy. And of PyServlet. And of java
servlets in general.

An object is created, and used to service every request.

In WSGI and modjy terms, this object is a WSGI application object, which is
'call'ed, with the WSGI environment representing the request passed as a
parameter. The object is 'call'ed once for every incoming request.

In java servlet terms, the servlet container invokes the 'service' method
of the object, with a HttpServletRequest object as a parameter. The latter
gives the servlet all the information it needs to know to service the
request. The method is called once for every request.

In both cases, multiple requests can be served simultaneously, in different
threads. Thread creation is under the control of the servlet container.

Alan.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y

_______________________________________________
Jython-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.