Hi Folks,
I have a query here,
Assuming we have a servlet which incorporates multi-threading (i.e it does
not use any thread synchronization) and now assuming there is a call to the
method "log()" somewhere in the servlet. Will this simple method log()
actually make the servlet to run in a synchronised way?
The reason being.
a) The log() method writes the String into a text file. A text file, me
thinks, unlike an RDBMS table can be written in a sycnhronized manner and
not concurrently. (I am using Jrun on IIS.)
b) Or will the servlet engine queue the messages to be written one by one.
c) Will the effect be the same for System.out.println() and
System.err.println().
Am I missing something very simple here :-).
Thanx in advance for any answers
Cheers
Ramesh
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html