views:

64

answers:

3

I'm working on a small (java) project where a website needs to maintain a (preferably comma-separated) list of registered e-mail addresses, nothing else, and be able to check if an address is in the list. I have no control over the hosting or the server's lack of database support.

Prevayler seemed a good solution, but the website is a ghost town, with example code missing from just about everywhere it's supposed to be, so I'm a little wary.

What other options are recommended for such a task?

+3  A: 

Use an embedded database like HSQLDB, H2 or Derby/JavaDB. They need no installation and can use simple files as their storage mechanism.

Joachim Sauer
+1  A: 

Yeah, prevayler and its historical concurrent, space4j, are really good candidates for such a simple case. They're far simpler than DB, provides however some useful concepts and are way fast (since in fact FS is only a backup of the in-memory datastore.

Riduidel
Are they really a good solution if fully ACID is needed? Do they fully support all 4 elements? Granted, fully ACID is not needed in all situations.
Joachim Sauer
+1  A: 

You may want to consider Berkeley DB.

Kris