java ee - J2EE and virtual filesystem for file storage -
i'm struggling problem now
"how store files on filesystem in j2ee web application"
it said, portability reasons accessing fs @ least not recommended.
i'd know other possibilities, make more portable , not performance heavy in mean time.
i can think of following ways
- use directly fs(temp files, webapp folder etc.) not portable - maybe user dir
- use virtual fs(apache commons vfs) - adding possibility switch fs impl.
- store files in db - lucene index files, looses sense
- jca - overcomplicated , need adapter every fs used
- jcr - idea use it(apache jackrabbit)
where store .properties files, lucene indexes, user files, user pictures? if using different environments application in development pipeline(openshift, heroku, web containers, application servers)
Comments
Post a Comment