Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    updating server.properties

    Hi,

    I'm using v8.3p_2013-05-12/PowerEdition Deployment (built 2013-05-12) with PostgreSQL 9.2.2, Firefox 20.0.1 and Tomcat 7.0.33.

    I'm required to give my users an admin tool which will let them configure their database connection parameters. This is similar, but less than the functionality provided by the ISC Admin Console. I only want them to have access to postgres and its configuration since that is our target database. I need the changes to affect the current running web app and to be captured in the server.properties file so they are persistent.

    I now have a feature which lets the user update the parameters in the server.properties file. But since the web application is already initialized, these new values are not used until the web application restarts. I believe I could also change the currently loaded values for these properties with calls to com.isomorphic.base.Config.

    How should I do this? Should I also update the currently loaded values with com.isomorphic.base.Config or is there some call to reload the properties that would be better? Or is this just the wrong approach?

    I would have used the ISC Admin Console as a model, but I didn't see any code for it.

    Thanks,
    Kevin

    #2
    We'd recommend using the Config class to update properties, and as far as rewriting / reloading server.properties, the simplest thing is to use some other means of storing the properties, eg a SQL database, where you're not having to worry about the lifecycle of something loaded from the classpath.

    Comment


      #3
      Thanks for the guidance. I'll look to use the Config class.

      Comment

      Working...
      X