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(connecti
on));
try {
liquibase.update();
} finally {
liquibase.forceReleaseLocks();
}
You can run that block of code on each of your databases.
Nathan
From: Liu Xin Qiang [mailto:[email protected]]
Sent: Thursday, June 11, 2009 6:24 AM
To: [email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/liquibase-user