A vdb can also be added at runtime through the http://docs.jboss.org/teiid/6.2/apidocs/org/teiid/adminapi/ConfigurationAdmin.html#addVDB%28java.lang.String,%20byte[. See also http://docs.jboss.org/teiid/6.2/admin-guide/en-US/pdf/teiid_admin_guide.pdf[/url]
Ignore the last post, it's not formatted correctly.
A vdb can also be added through the admin api. See also the admin shell reference.
oops, for some reason I was thinking that Teiid did not support deploying the dynamic VDB through the admin api. Thanks for the correction Steve.
After looking at this some more, we don't attempt to determine if the bytes are a def file and instead assume that it must be a vdb. So the only way this would work is if the def file were placed in a zip archive as ConfigurationInfo.def.
Thank for the info.
I have yet another new user question.
How do I connect to the Server admin in order to deploy the vdbless as archive.
When you acquire the JDBC Connection, you can type cast that connection to
com.metamatrix.jdbc.api.Connection conn = (com.metamatrixjdbc.api.Connection)getConnection(); Admin admin = conn.getAdminAPI(); admin.addVDB(...)
For all the parameters and all other available methods on the Admin API check out the JavaDocs. The "com.metamatrix.jdbc.api" package shows Teiid specific extensions to the JDBC API.
You can also use the "AdminShell" scripting in interactive or script mode and use following mode
for all the "AdminShell" available commands type "help();" at the prompt. Check out the "AdminShell" guide to learn and use it.