Skip to content
amak edited this page Apr 10, 2025 · 3 revisions

A WSGI server for jython

Introduction to modjy

Python Web Server Gateway Interface, as specified in PEP-333, is a simple and universal interface between web servers and [python] web applications or frameworks.

Modjy is an implementation of a WSGI compliant gateway/server for jython, built on Java/J2EE servlets. Which means that

  • Jython WSGI applications run inside a Java/J2EE servlet container, e.g. Apache Tomcat
  • Incoming requests are handled by the servlet container
  • The container is configured to route requests to the modjy servlet
  • The modjy servlet creates an embedded jython interpreter inside the servlet container, and loads a configured jython web application, e.g. Django, the web framework for perfectionists with deadlines.
  • The modjy servlet delegates the requests to the configured WSGI application or framework.
  • The WSGI response is routed back to the client through the servlet container.

For further information about WSGI, see wsgi.org. For a detailed specification of WSGI see PEP-333: Python Web Server Gateway Interface, version 1.0.

How to use modjy

Clone this wiki locally