I’m using Glassfish/JSF. Is it possible to host static files from disk? I need to generate xml file and save it somewhere on disk so it could be available as http://domain.com/file.xml
I need similar functionality to apache/php where I can save file to /public_html and it is automatically available.
I think you should try out Virtual directory. Basically, you only need to create a Virtual directory which is mapped to a folder on your hard-disk. After that, you can access all files in that folder directly from the URL as desired.