Re: SPAM Same thread for calls to Native methods

2007-03-21 Thread Peter . Henningsen
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 configure

Re: Same thread for calls to Native methods

2007-03-21 Thread Leon Rosenberg
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,