*
The moose likes JDBC and the fly likes Read-only, embedded database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Read-only, embedded database" Watch "Read-only, embedded database" New topic
Author

Read-only, embedded database

Ron Olson
Greenhorn

Joined: Nov 22, 2000
Posts: 14
My application reads (doesn't write) a few tables from a database, using JDBC for simple queries and a little MetaData retrieval.
But, now I need to distribute the application to others, and I want:
1) trivial setup for them (e.g., no separate install of a database product)
2) hidden database data (I don't need top level security, but I at least want them to work if they're going to look at it)
3) minimal changes to my current application
One solution might be to somehow copy the data into Java classes, and use a JDBC driver that would access this class-based database. Just having the data in classes (they wouldn't see the source) would be enough 'data hiding' for my purposes.
A second solution would be to use a simple database whose software was entirely in Java classes, but whose data was in one or more files. The data would have to be reasonably hidden through some type of encryption.
Seems to me like others must have had similar needs over time. I'd like to hear about any ready-made solutions to my need. Or, if you can point me to any Java source that I might use as a starting point, would help, too.
Thanks,
Ron (ron@emergentweb.com)
matt hooker
Ranch Hand

Joined: Jul 26, 2001
Posts: 46
Mmm, interesting.
I would look to store the data in some sort of java datastore .. maybe a set of serialized hashes or somesuch. Maybe even create MD5 hashes or somesuch of the data and then 'de-hash' the data when it is retrieved .. that would be fun eh ?
Have fun.


Its not what you do, its the way you say you've done it.
 
Don't get me started about those stupid light bulbs.
 
subject: Read-only, embedded database
 
Similar Threads
Transfering large amounts of records from one J2EE system to another: how?
j2ee without ejb
Converting an application to Java (new to Java)
Is my MVC design under RMI reasonable?
all this O/R stuff...my questions