This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Servlets and the fly likes file access, concurrency issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "file access, concurrency issues" Watch "file access, concurrency issues" New topic
Author

file access, concurrency issues

shankar vembu
Ranch Hand

Joined: May 10, 2001
Posts: 309
In my web application which is running on a multi threaded servlet model, I access file resources using context.getResourceAsStream(filename). I get the stream(say an xml file),parse it and immediately close the stream. If multiple requests access this line simultaneously, will there be any problem. Will one of the requests be blocked?? For me its no big issue, cos I only do a read operation. But i still wanna know what actually happens behind the method getResourceAsStream()....
Thanx,
SHankar.
 
 
subject: file access, concurrency issues