Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets and File I/O

 
John R Roberts
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am developing an application that will run in a clustered application server. My app will have message driven beans and session beans. Now I know that you should not have any file I/O in that environment and that is fine. The question is that if I have servlets running within that application aswell can I safely let the servlet access the file system to read or write files.

thanks,
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your servlets should have no problem accessing the file system. As long as you dont let EJBs do the IO work it should work
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that Java provides very fine control over the IO allowed by a web application. For example in Tomcat, with security turned on, a servlet can be allowed to read/write etc in only one specific directory location.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic