Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

file access, concurrency issues  RSS feed

shankar vembu
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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()....
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!