-
1. Re: How to update vdb version number with embedded teiid
markaddleman Oct 7, 2013 11:55 AM (in response to gsinghal)I believe there is a way to register a listener so you can receive deploy & undeploy events. Can you use that?
-
2. Re: How to update vdb version number with embedded teiid
rareddy Oct 7, 2013 12:13 PM (in response to gsinghal)The version number is part of the vdb name signature which is defined in the vdb.xml, update the number in there you get a new vdb with update version number.
markaddleman: You can register VDBLifeCycleListener on VDBRepository to get such events. For that you need to extend the "EmbeddedServer" and override "getVDBRepository" method.
-
3. Re: How to update vdb version number with embedded teiid
gsinghal Oct 7, 2013 12:39 PM (in response to rareddy)The deploy VDB method takes in only vdb name and the model objects, so no way to pass an xml file name with embedded teiid atleast, public void deployVDB(String name, ModelMetaData... models).
markaddleman I could use that to keep track of version number myself if I'm not able to get teiid's internal version number to update.
-
4. Re: How to update vdb version number with embedded teiid
rareddy Oct 7, 2013 2:11 PM (in response to gsinghal)There is overloaded deploy method that takes "inputstream" of a vdb.xml file, you can use that. Or create overridden "deploy" method on the EmbeddedServer class and add a version, and implement it based on previous method contents.
Ramesh..
-
5. Re: How to update vdb version number with embedded teiid
gsinghal Oct 7, 2013 2:52 PM (in response to rareddy)that should work, thanks!