2

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?

tshepang
  • 12,111
  • 21
  • 91
  • 136
T.R.
  • 7,442
  • 6
  • 30
  • 34

3 Answers3

3

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
  • 302,674
  • 57
  • 556
  • 614
2

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
  • 22,052
  • 14
  • 85
  • 185
1

You may want to consider Berkeley DB.

Kris
  • 14,426
  • 7
  • 55
  • 65