${variables} in Servlet Listener

Can we come up with a way for a Tomcat 6 web application to set change log ${variables} for the Servlet Listener?

This post says I can just set a Java system property.

But this HOWTO says that I can’t set a Java system property from my web application.

Maybe initialization parameters or JNDI.


There isn’t currently.  I created a feature request for a later release to add support for it (http://liquibase.jira.com/browse/CORE-617).

For now, you could certainly create your own ServletListener that either extends the liquibase one or just use it as a starting point for your code and set parameter as you can.  Let me know if you have questions on how.


Thanks, Nathan,

That’s a good idea.  The temporary fix on our development server is to hack the Windows registry here:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\Tomcat6\Parameters\Java\Options