Tool to handle properties and log4j in a complex environment

牧云@^-^@ 提交于 2019-12-11 14:03:37

问题


I work on a pretty big J2EE e-commerce website (3 billion turnover) and we developpers are kinda bored of the way we handle properties and log4j config.

We actually have many applications, some of them use a main application. Each application have minor versions and each version have a properties/log4j configuration that handle many environnements (dev/packaging/integration/tests/pre-production/production). We can't put the properties directly on the SCM. The properties i talk about are not in ear/war files.

We'll say that application B-App is using main application App-A and we have versions 1.0 and 2.0

The matter is that our tool works but is not intuitive at all, and merges are often fortogotten, or not done properly because the process is hard to respect... thus when we put a minor version in production we sometimes have some surprises... a property or logger disappear, a property update is rollbacked...

Exemple: I add a property xxx.yyy in main application App-A 1.0 Then if the merge is not done correctly the property won't be there when we put App-A 2.0 in production. And App-B, that should normaly also use xxx.yyy, could not have the property too, even in 1.0 version (this should remains a manual process since all properties of App-A are not used in App-B)

I wonder if there is an opensource tool to handle this nicely with historization, user permissions... Perhaps i should start one...


回答1:


I dont think you need a tool (at least not at first).

You need a clearly defined process. Get some stakeholders in a meeting room and thrash out what should happen in a given lifecycle, then work out what tools you need to ensure that that process is followed, and as easy to do as possible.



来源:https://stackoverflow.com/questions/4126154/tool-to-handle-properties-and-log4j-in-a-complex-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!