Announcement

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

    Dynamically define DB connection parameters in server.properties during runtime

    I'd like to be able to define new DB connection parameters in server.properties during run time w/o having to restart the server (i.e. the entries that defines the driver, database type, user, password, etc).

    I am trying to do this in a Servlet that gets initialized after com.isomorphic.base.Init by putting new connection properties as follows:

    Properties properties = getDynamicProperties();

    iterate through the properties {
    Config.getGlobal().put(key, value);
    }

    This seems to work for some DataSource.... but not those that inlcudes other DataSources.

    Is there a reason why this won't work?



    Version: SmertClientEE V3.0

    #2
    Could you clarify "include other DataSources"? Field of type DataSource? field.includeFrom? DataSource.inheritsFrom?

    Comment


      #3
      Sorry, false alarm. This does work.

      Comment


        #4
        By the way, include = includeFrom:

        <field name="appName" title="Application"
        includeFrom="appName.name"/>

        However, as I said, false alarm. Thanks for responding so quickly.

        Comment


          #5
          Ksusweep,

          Does your use case consist of being able to change the db connection parameters while your webapp has been up and running?

          Comment

          Working...
          X