Hi,
I'm using SmartClient Version: v8.3p_2013-05-12/PowerEdition Deployment (built 2013-05-12) with PostgreSQL 9.2.2, Firefox 23.0.1, and Tomcat 7.0.33.
I had an old thread where I asked about updating server.properties. (http://forums.smartclient.com/showthread.php?t=26787). I've taken the advice in that thread. I keep my properties somewhere else, load them after the Init servlet and use the Config class to update the global properties. All that seems fine.
The parameters I want to change are the database connection parameters from server.properties like sql.PostgreSQL.driver.serverName. I also need to change these parameters after the application has been running and the Config class works fine for that. But, of course, the database connection mechanisms have already been set up and the new property changes are not honored on the fly.
I need the database support to start using the new properties. I should be able to do this by reinitializing/reseting/recreating the database connection/pooling support components. It should be possible because this is like the adminConsole's behavior. (I would just use the adminConsole, but the users want a simpler interface.) All the database support I typically use is wrapped by SmartGWT functionality. What are the objects I need and how do I get them?
I could also just be doing this wrong. Is there some better way to have the running server start using the new database properties?
Thanks
Kevin
I'm using SmartClient Version: v8.3p_2013-05-12/PowerEdition Deployment (built 2013-05-12) with PostgreSQL 9.2.2, Firefox 23.0.1, and Tomcat 7.0.33.
I had an old thread where I asked about updating server.properties. (http://forums.smartclient.com/showthread.php?t=26787). I've taken the advice in that thread. I keep my properties somewhere else, load them after the Init servlet and use the Config class to update the global properties. All that seems fine.
The parameters I want to change are the database connection parameters from server.properties like sql.PostgreSQL.driver.serverName. I also need to change these parameters after the application has been running and the Config class works fine for that. But, of course, the database connection mechanisms have already been set up and the new property changes are not honored on the fly.
I need the database support to start using the new properties. I should be able to do this by reinitializing/reseting/recreating the database connection/pooling support components. It should be possible because this is like the adminConsole's behavior. (I would just use the adminConsole, but the users want a simpler interface.) All the database support I typically use is wrapped by SmartGWT functionality. What are the objects I need and how do I get them?
I could also just be doing this wrong. Is there some better way to have the running server start using the new database properties?
Thanks
Kevin
Comment