
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
Those are the built-in ways to auto-execute Liquibase, but you
can access the liquibase objects and use them however you want, such as in your
own ServletListener.
Here is some starting code for you:
Liquibase liquibase = new Liquibase(changelog, new
ClassLoaderFileOpener(),
DatabaseFactory.getInstance().findCorrectDatabaseImplementation(connection));
try {
liquibase.update();
} finally {
liquibase.forceReleaseLocks();
}
You can run that block of code on each of your databases.
Nathan
From: Liu Xin Qiang
[mailto:atu0830@...]
Sent: Thursday, June 11, 2009 6:24 AM
To: liquibase-user@...
Subject: [Liquibase-user] how to make liquibase servelet listener
workwither multi-datasource?
Hello
I have three datasource need to be update, but looks LIQUIBASE_DATA_SOURCE only
receive one datasoucre as parameter.
My application is using Seam and can not run liquibase Spring bean before Seam
application started, is there other choise to auto update database(except
servlet listener and spring) ?
Thanks
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects_______________________________________________
Liquibase-user mailing list
Liquibase-user@...
https://lists.sourceforge.net/lists/listinfo/liquibase-user