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.
http://liquibase.org/forum/index.php?topic=414.msg1361#msg1361
But this HOWTO says that I can’t set a Java system property from my web application.
http://wiki.apache.org/tomcat/HowTo#Can_I_set_Java_system_properties_differently_for_each_webapp.3F
Maybe initialization parameters or JNDI.
--Steve
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.
Nathan
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
--Steve