Reputation: 281
Iam developing a client/server app in java.
I need to store ids , passwords etc of all the users for login,document sharing and chat purposes.
I dont want to install any DBMS because i need only 1 or 2 tables with around a thousand entries.
Is there any way to do this??
Upvotes: 0
Views: 179
Reputation:
Check out HSQLDB or H2 database. Both will fit your needs
Both have a rich set of SQL features, can run embedded or standalone and have a small memory footprint. Personally I prefer HSQLDB over H2 but not for a specific reason.
Upvotes: 2
Reputation: 2049
You can write the data to a local file on the server, and read it from there, but its hardly efficient.
Upvotes: 2
Reputation: 272417
Why not use the JavaDb which comes with the JDK as standard ? You can run it in-JVM and persist to the file-system. It's a SQL database so if you're familiar witha RDBMS it should be straightforward to integrate.
Upvotes: 6