Using mapserv as a dynamic link library from a servlet

Wakely, Matthew Matthew.Wakely at dsto.defence.gov.au
Wed Mar 21 13:43:58 PST 2001


Has anyone tried to convert mapserv to a .dll file and then call it using a
java Servlet and Java Native Interface.

My problem is that the mapserv program only seems to run once. Usually this
would be ok because CGI programs run once then die. However I cant do that
from a servlet.
Basicly all i did was convert the main() function in mapserv.c to a function
"callMapserv()" i could call from Java. The problem is that the program
seems to crash when it tries to parse using maplexxer.c and mapparser.c.

Has anyone encountered these problems before or could someone perhaps offer
some advice. I suspect its because of all the global variables flying around
within mapserv.



More information about the MapServer-users mailing list