Jignesh: Trust me on this, you *don't* want to avoid concurrent requests: Struts takes care of that bit for you. As long as the variables in the execute method of your action classes are all method variables and you stay away from class variables, you will be ok. Really. :)
As for why your tomcat server hangs, not having seen any code, I can only guess at the reason: chances are it has something to do with database connections not getting returned/closed properly in a finally block after they are used. (I assume you can get stuff to work via a tomcat restart..?) I kind of doubt your problem has anything to do with the addition of your synchronized key word.. Regards, Geeta > -----Original Message----- > From: Jignesh Patel [mailto:[EMAIL PROTECTED] > Sent: Monday, May 10, 2004 9:02 AM > To: Struts Users Mailing List > Subject: strange tomcat problem with struts1.1 > > > Hi All, > We are facing one strange problem, our server hangs after > every 2-3 days. The > reason behind it, is it tomcat creates unwanted java processes. > From my side I haven't implemented anything special except adding > "synchronized (this) {" line in execute method so that I can avoid > concurrent request. > > Will it be the reason? > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]