which is the best way to externalize a database configuration on a desktop app?
I'm working in a desktop app, and we're using Eclipse RCP with EclipseLink. All my database configuration is inside a class, but I'll need these thing (database URL, password, username) configurable. Which is the best way to do that? Easiest way would be to use some simple property file and java.util.Properties to read it. You can read the file from classpath, e.g: Class.getResourceAsStream ("resource.properties"); The standard way is to have a properties (either java.util.Properties or XML) file in which is stored the database details. This can be writeable by the user of course, and