Hello! Now I'm writing a servlet, say MyServlet, whose instances need to write some information to a log file of my own. And also they need to access (get and modify) an object containing information for all of them. So I think I should do some synchronization operations of this shared object and of writing to the same log file. I know the ServletContext class has methods "getAttribute"/"setAttribute" which allows all the servlets (not just instances of one servlet class) to share objects. But are these methods synchronized? Or is there any better way to implement my goal? And when it comes to writing to the same file, how can I assure there is just one instance accessing the file at one time? Any hints and suggestion is appreciated greatly!!! Best regard: Janet ___________________________________________________________________________ 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
