An optional extension of the Web Server is to act as Java Application Server.
This in construction and is barely working at this point.
When sawad
is started with the -http
(Web Server) and -towa
(ToWa) flags, all the HTTP requests are forwarded to ToWa.
- A
towa
process is spawned and acts as the application pool running the servlets sawad
checks that thetowa
process exists before sending a communicatin, and spawns the process again if that is not the case.sawad
andtowa
communicate using a class deriving fromTowaIPC
. Right now onlyTowaPipe
is available, and is using two named pipes to communicate:towa_ping
(the HTTP request sent fromsawad
totowa
) andtowa_pong
(the response fromtowa
)towa
is using JNI to call the Java Servlet. It is using the Java classesTowaRequest
andTowaResponse
to pass and receive data to the servlet.
- Add more reliability to the
towa
process. Thetowa
process' stability has improved, and doesn't crash anymore when t class invoked doesn't exist. The reliability is however still not 100% complete. - Scan the
classpath
folder for any.war
file, unzip them if it hasn't already been done and add the path to the classpath - Allow the Web Server to both look at the filesystem and servlet requests by reading the
web.xml
mappings - Add support for more IPC options between
sawad
andtowa