I have a
JSF application that uses hibernate with a MySql database, and I was wondering what most people do to handle database installation/database changes between versions of an application. I want my web app to handle the changes (if any) to the database on
tomcat startup/context startup. I want to release this application to the public, but I don't know what is the best model to do this. Do most people just use a
servlet to handle this operation, or maybe a ContextListener? I just wanted to ping everyone and see if there was a best practice.
Thanks in advance!