Changes between Version 2 and Version 3 of AccountManager


Ignore:
Timestamp:
04/30/20 16:22:27 (5 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AccountManager

    v2 v3  
    3030 * If the variable is not set, the default value "src/main/resources/accounts.db" is used.
    3131
    32 This way, the default without environment variable can work when doing junit tests while also it allows you to make it work with environment variable in a more complex situation like a tomcat server. If you need to you can always override DBConnection#getDatabaseURL to return something more suited. You can also use a different database than SQLite by verriding DBConnection#getDriverName().
     32This way, the default without environment variable can work when doing junit tests while also it allows you to make it work with environment variable in a more complex situation like a tomcat server. If you need to you can always override DBConnection#getDatabaseURL to return something more suited. You can also use a different database than SQLite by verriding DBConnection#getDriverName(). Or even write another implementation of DatabaseInterface.
    3333
     34SQLite requires database  to be available in plain filesystem format (so not as part of a jar, war, etc).
     35
     36
     37== Mail Configuration
     38The DefaultMailer() takes the properties from the mail.properties file (see src/main/resources). This works even inside a jar.
     39
     40The mail.properties file is configured to use the TUDelft mail system, and only works if your machine has a TUDelft internet address. You may have to override the standard settings if you want to use this on a non-TUDelft machine.
     41
     42You can also provide a set of Properties directly to construct a DefaultMailer with non-standard settings.
     43
     44
     45