My web application is installed on many customer servers. Since the app needs to send emails (password recovery), I need a good way of setting up the email server info for each customer.
Should I just have an xml file where each customer can fill in the email server info, and the app picks it up from there?
Are there better ways?
Without more information it’s hard to give you specific suggestions. For standalone apps, I would tend toward using simple properties files (javadoc).
Map.There are some drawbacks:
I’m sure there are better ways – and you’ll get lots of answers – but IMHO, these files are simple, relatively rugged and easy to handle.