Threads in Tomcat

2004-02-15 Thread kwirirai
Thanks to All, I have done all the stuff to make my web app thread safe, It seems its fine for the moment.Except for a few more things. It seems threading is realy complex. I am forking out a new thread in my Handle request method and this is making the other request to wait for the other thread

Re: Servlet thread safety in Tomcat

2004-02-11 Thread kwirirai
Thanks to All for your help ! :-) Sofar it seems to be working ,no data corruption,I localized all variables ,put in some synchronized blocks,removed them again(synchronized blocks) and seems to work, but not sure why without the synchrozed blocks its working . :-\ Is there free software that

Servlet thread safety in omcat

2004-02-09 Thread kwirirai
Hi All I am developing an application that uses JavaMail.What I am concered is the issue of thread safety,and efficiency.My question is do I need to employ synchronized blocks in my Servlet code or is there another way to implement thread safety.I have been experimenting with the application

Servlet thread safety in Tomcat

2004-02-09 Thread kwirirai
Hi All I am developing an application that uses JavaMail.What I am concered is the issue of thread safety,and efficiency.My question is do I need to employ synchronized blocks in my Servlet code or is there another way to implement thread safety.I have been experimenting with the application and I

Re: Servlet thread safety in Tomcat

2004-02-09 Thread kwirirai
servlets/objects that will meet those requirements. Your original post is too broad to solicit a detailed response. Yoav Shapira Millennium ChemInformatics -Original Message- From: kwirirai [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 12:48 PM To: [EMAIL PROTECTED] Subject

Re: Servlet thread safety in Tomcat

2004-02-09 Thread kwirirai
is actualy mixing up. -Original Message- From: kwirirai [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 12:48 PM To: [EMAIL PROTECTED] Subject: Servlet thread safety in Tomcat Hi All I am developing an application that uses JavaMail.What I am concered is the issue

Re: Servlet thread safety in Tomcat

2004-02-09 Thread kwirirai
snipet for (int i = msgCount; i =stopPoint; i--) { m = folder.getMessage(i); //get the message } This actually hapening when one session is downloading suppose 300 emails, and the other lets say 50.This suppose ,what I am actually doing is I have two

Re: Servlet thread safety in Tomcat

2004-02-09 Thread kwirirai
thing that is mostly thread safe are objects whose scope is limited to a single method, but even these can get you in trouble if you put references to those objects in global locations (such as an application wide cache). --- kwirirai [EMAIL PROTECTED] wrote: The app is simply meant to grab some

Re: Servlet thread safety in Tomcat

2004-02-09 Thread kwirirai
Thanks very much for your contribution guys! :-) This has given me new approaches to the problem.I intend to remodify,try the synchronization and do the testing/benchmarking.But this has made me think a lot about threading , it is really complicated , I have researched about it but never found

Re: Isapi redirector jk2.02 Installer

2004-01-12 Thread kwirirai
Figured it out it works,I am now running the examples ,but I had to define the tomcat connector in IIS ISAPI filter and ponted the native\i386\isapi_redirector2.dll installation kwirirai wrote: Hi I have tried using the Isapi redirector jk2.02 Installer from http://www.shiftomat.com

Re: Isapi redirector jk2.02 Installer

2004-01-12 Thread kwirirai
: kwirirai [EMAIL PROTECTED] Antworten an: Tomcat Users List [EMAIL PROTECTED] Datum: Mon, 12 Jan 2004 14:21:11 +0200 Figured it out it works,I am now running the examples ,but I had to define the tomcat connector in IIS ISAPI filter and ponted the native\i386\isapi_redirector2.dll installation

Isapi redirector jk2.02 Installer

2004-01-11 Thread kwirirai
Hi I have tried using the Isapi redirector jk2.02 Installer from http://www.shiftomat.com/opensource/ It does not seem to work on my machine .I am running Windows 2000 and IIS 5 and Tomcat v 5, Also tried the documentation from http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html I dont