What is IISRelayJ?

Implementation Examples

How it works

Show files

Help Forum



SourceForge.net Logo

Project Summary


How it works ...

The ISAPI spec states that two methods of a DLL must be exposed to the web server. The first one, GetExtensionVersion(), sets the version and description for the ISAPI extension and performs any initialization work. The second one, HTTPExtensionProc() is called for every request made to the extension.

The HTTPExtensionProc() has access to the request made by the client, headers and such, and is responsible for writing any results back to the client.

IISRelayJ uses winhttp routines within HTTPExtensionProc() to act like a browser to the servlet container. The result is a bridge between the IIS and any servlet container making the servlet container transparent to the rest of the world. This isn't as as complicated as it might seem. At the projects inception the primary code consisted of 472 lines -- including comments!