Re: Is the struts example itself is multi-thread safe?

2001-03-01 Thread Maya Muchnik
Thank you, Craig for clear "picture". One Q. to be sure that all OK. What about servlet.log file? Several action threads will need to have an access to it.,... Maya "Craig R. McClanahan" wrote: Maya Muchnik wrote: Hi, In "A Walking Tour of the Struts App", the author has mentioned

Re: Is the struts example itself is multi-thread safe?

2001-03-01 Thread Craig R. McClanahan
Maya Muchnik wrote: Thank you, Craig for clear "picture". One Q. to be sure that all OK. What about servlet.log file? Several action threads will need to have an access to it.,... True, but that is the servlet container's problem to worry about. If you look inside Tomcat's implementation

Re: Is the struts example itself is multi-thread safe?

2001-02-28 Thread Craig R. McClanahan
Maya Muchnik wrote: Hi, In "A Walking Tour of the Struts App", the author has mentioned that "There is only one object for each action (URI), so your action objects must be multi-thread safe". Is the example itself is multi-thread safe? I am asking this, because are several actions here,

RE: Is the struts example itself is multi-thread safe?

2001-02-27 Thread Deadman, Hal
The example is thread safe. Methods don't need to be synchronized if they aren't manipulating a shared object such as an instance variable. If your action class doesn't have any instance variables and it only deals with local variables and parameters then there is a good bet that it is thread