klutzer/restapp

We need some kind of config file strategy for prod vs dev

Opened this issue · 1 comments

saoj commented
    public App() {
        this(new H2ConnectionManager());
        register(new LoggingFilter(Logger.getLogger(getClass().getSimpleName()), true));
    }

The H2ConnectionManager should not be hardcoded so we can swap it in production on the fly with a different config file (properties file).

Good idea.. We have to create different profiles for dev and prod, with its own configurations (we don't want the logging feature in prod environment)