S
sloan
I'm using Tomcat 4.1.12 on a Win2K server to host a servlet which uses
JNI to call a DLL. I would like to run multiple instances of this
servlet calling separate instances of the DLL. That part is no problem
simply by giving each instance a unique name (both servlet class and
DLL). However, I'd like to run each instance in its own process space
because of the memory requirements of the DLL.
So far, the only way I've found to do this is to run multiple
instances of Tomcat. That's simple enough using the CATALINA_BASE
setting and launching multiple copies of the server. However, it would
be simpler if I could run one instance of Tomcat and designate certain
parts of it to run out of process, say at the context, host, or engine
level.
Is it possible to set a context within the Tomcat server to run in its
own process space?
I apologize if this is off-topic for the group. In searching the
archives, it seemed that most Tomcat config questions ended up here.
If there's a better place, let me know.
JNI to call a DLL. I would like to run multiple instances of this
servlet calling separate instances of the DLL. That part is no problem
simply by giving each instance a unique name (both servlet class and
DLL). However, I'd like to run each instance in its own process space
because of the memory requirements of the DLL.
So far, the only way I've found to do this is to run multiple
instances of Tomcat. That's simple enough using the CATALINA_BASE
setting and launching multiple copies of the server. However, it would
be simpler if I could run one instance of Tomcat and designate certain
parts of it to run out of process, say at the context, host, or engine
level.
Is it possible to set a context within the Tomcat server to run in its
own process space?
I apologize if this is off-topic for the group. In searching the
archives, it seemed that most Tomcat config questions ended up here.
If there's a better place, let me know.