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
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
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,
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
4 matches
Mail list logo