Best persistence questions in June 2011

Disk storage in a jee application

5 votes

I have JavaEE app in which I want to small little amount of data to disk, eg just user/passwords.

I dont want to go through the hassle of integrating with a full db for this little amount of data.

Is there a standard way to access the file system and a standard folder where web applications can store their data on disk, other than using a database?

Note:

I am not using EJB's. Its a web application using servlets.

You could consider using the preferences API to store this data - it's available on Java EE as well.