[jboss-user] [Beginners Corner] - reading a file stored outside the .war

sdein do-not-reply at jboss.com
Wed Aug 19 12:36:28 EDT 2009


we are developing a servlet here that will read the content of a couple of files and outputs binary data.
rather than storing our base-files in a database (which would be quite slow, given the size of our files) or putting them in the .war (which would prevent us from later adding files short of rebuilding/redeploying) we want to store them in a local folder of the system where our jboss-instance runs and open them as files via FileInputStream:

o) where would be the "proper" directory to store those files?
o) is there a "proper way" to do this (obvious extensions will be a file-upload/management servlet as a next step)?

thanks for any help that can point us into the right direction!

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250446#4250446

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250446

More information about the jboss-user mailing list