Servlet listener and rollbacks


I work in a big corporate. The servlet listener is fantastic for us to do continuous delivery, because it means we can use the existing JavaEE datasources to do the updates in production & we don’t have to build anything special to authenticate a JDBC connection.

However, we still have to be able to roll back. Can the servlet listener be configured to generate a rollback script? Or, ideally, I would like it to tag before update and then I could build a page that allows the deployer to rollback to the specific tag.

Any ideas?


It does not do it currently, but it is easy enough to create your own Servlet Listener that does whatever you need.

Line 147 of does the update, you can add additional code to a subclass of LiquibaseServletListener or rewrite it to fit your needs.