Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 45456 invoked from network); 11 Feb 2004 13:45:43 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 11 Feb 2004 13:45:43 -0000 Received: (qmail 2614 invoked by uid 500); 11 Feb 2004 13:44:24 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 2565 invoked by uid 500); 11 Feb 2004 13:44:24 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 2405 invoked from network); 11 Feb 2004 13:44:22 -0000 Received: from unknown (HELO hawai.paradigma.com.br) (200.236.160.130) by daedalus.apache.org with SMTP; 11 Feb 2004 13:44:22 -0000 Received: from paradigma.com.br (prgd06.inova.ufmg.br [150.164.211.56]) (authenticated) by hawai.paradigma.com.br (8.11.6/8.11.6) with ESMTP id i1BDlLI15253 for ; Wed, 11 Feb 2004 11:47:21 -0200 Message-ID: <402A3FAD.7030702@paradigma.com.br> Date: Wed, 11 Feb 2004 11:43:57 -0300 From: =?ISO-8859-1?Q?Fl=E1vio_Castro?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Problem using JNI(loadLibrary), Servlet and Tomcat Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm having a problem using servlets and maybe some of you can help me to figure out what's going on. Here's the deal: I have a servlet that loads a C library and uses some of these C native methods. In addition, I have some JSPs that invoke the routines contained in this servlet. My C application has some peculiarities: it can work either in a interactive way or in a non-interactive way. When I invoke it in the non-interactive way and provide it all the input needed, I have no problems at all. That's how it is working today. When I try to invoke my C application in a interactive way and try to establish a "conversation" between my C application and the JSPs, everything also seems to work fine. The nightmare begins when two or more users try to use this application in a interactive way at the same time. If I have two browsers working at the same time and accessing this application, the system just doesn't work correctly. It seems that since you begin to run the application from a browser, you can't run it again until the previous user has finished his work. From what I've talked with other people and from my experience, the only thing I could conclude is that Tomcat can't handle very well those "multi-task" operations. It seems that it throws a thread for each request that is made, but you have only one process in charge of the whole thing. I suppose that's why I'm having these problems. Does anyone have any idea of what it could be ? Have any of you noticed a similar problem before ? Could it be a tomcat configuration issue ? Some people suggested to use JavaBeans to solve this problem, have any of you tried this approach before ? Thanks in advance. Fl�vio Castro. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org