What is the best/correct way to manage patches version information on j2ee WAR file
I would like to maintain patch information on a WAR file, so this info could be displayed inside the application once it’s running for maintenance purposes.
was thinking of few possible ways:
- Using DB table – (I would like to avoid this method)
- Disadvantages
- Couple the WAR versions to a DB
- Additional overhead of database script with the patch.
- Disadvantages
- Adding internal XML file to the resources then reading and analyzing/parsing it
- Disadvantages
- Issues accessing the XML (Physical path issues?)
- Disadvantages
- Adding the patch info to MANFIEST file
- Disadvantages
- Impossible to display it in the app?
- Disadvantages
I would like to know if there are more ways and what is the best one for such requirement.
Thank you