You can easily avoid this problem by introducing an abstraction layer
which is called by the servlet and which maps the calls to the one
internal thread, which is associated with native libs. You can use a
queue to synchronize the calls.
regards
Leon
On 3/21/07, kz <[EMAIL PROTECTED]> wrote:
Hi
Hi Khurram,
As a "Pure Java" workaround, I would use a Singleton to collect work
orders from various servlet-threads. That singleton would create one
worker thread and feed it sequentially with work for the native code.
Regards,
Peter Henningsen
Senior Consultant
<<
Is it possible to configu
Hi,
Is it possible to configure Tomcat so that it spawns just one thread for
calling all the methods of native code (the native methods are called from
servlets)?
Actually I am having a problem that I call a native method (C++ is the
native language) and from the native code I initialiize some p