开发者

Is there any Java Web Application that dynamically allows to publish the contents of a .properties File and let me modify it?

As part of all the development of some use cases, I've used a properties file approach to handle almost all the configuration parameters in the project.

Even when this approach is a security safe approach, I need to be able to change this parameters on the application, so I need an admin web module to be able to change at runtime all the configuration on the properties file.

I would like to know if there's any WAR that I can put on my website to enable dynamic web application modification.

I found that the Apache Commons Configuration enables me to do runtime modifications, but开发者_如何学Go I haven't found a CRUD application for properties files.

Does anyone know one?


Agreed with Isaac's and ruffp's comments. Even if you did manage a way to update the contents of the property files at runtime, this wouldn't solve the issue that most of the properties are likely loaded once and not read again until the application is restarted. You're best off using Java EE environment entries, or a backing database.

Another option is to use JMX management beans. These beans could then be accessed through any JMX management tool, including jconsole - or your could use any available web front-end to access them as well, including any provided by an application server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜