I have a simple python function that I need to run as a web service from a tomcat server. This is the setup I got as an external requirement from my client and I cannot change it. I've managed to make this work with CGI, but I would like to optimise it and have encountered the following snippet on the uWSGI documentation that gives me hope:
The included servlet can be used to forward requests from Tomcat to the uWSGI server. It is stable, but currently lacks documentation.
There is currently no commercial support for this handler.
I'm new to uWSGI, so I'm not sure where is this servlet included. Can anyone point me to it? Have you managed to use this connection, and if so - how? If not, pointing to the proposed servlet (possibly in the uWSGI distribution or source) would be enough of a starting point for me.
I've seen that people have used nginx to proxy between tomcat and uWSGI, but for obvious reasons I'd prefer to try not to do that. Additional clarification following comments: In fact, the setup should not depend on launching python as an independent from tomcat process.