... |
By default TTL expiration will be invalidating - see [Internal Materialization]. Setting lazy-invalidate to true will make ttl refreshes non-invalidating. |
* _deployment-name_ Effectively reserved. Will be set at deploy time by the server to the name of the server deployment. |
h1. import-vdb Element |
... |
A VDB or virtual database definition is contained in an XML file. For .vdb archive files created in the design tool, this file is embedded in the archive and most fields can be updated through tooling. The XML schema for this file can be found in the docs/teiid/schema directory.
<vdb name="${vdb-name}" version="${vdb-version}"> <!-- VDB properties --> <property name="${property-name}" value="${property-value}" /> <!-- UDF defined in an AS module, see Developers Guide --> <property name ="lib" value ="{module-name}"></property> <import-vdb name="..." version="..." import-data-policies="true|false"/> <!-- define a model fragment for each data source --> <model visible="true" name="${model-name}" type="${model-type}" > <property name="..." value="..." /> <source name="${source-name}" translator-name="${translator-name}" connection-jndi-name="${deployed-jndi-name}"> <metadata type="${repository-type}">raw text</metadata> <!-- additional metadata <metadata type="${repository-type}">raw text</metadata> --> </model> <!-- define a model with multiple sources - see Multi-Source Models --> <model name="${model-name}" path="/Test/Customers.xmi"> <property name="multisource" value="true"/> . . . <source name="${source-name}" translator-name="${translator-name}" connection-jndi-name="${deployed-jndi-name}"/> <source . . . /> <source . . . /> </model> <!-- see Reference Guide - Data Roles --> <data-role name="${role-name}"> <description>${role-description}</description> …. </data-role> <!-- create translator instances that override default properties --> <translator name="${translator-name}" type="${translator-type}" /> <property name="..." value="..." /> </translator> </vdb>
Property Substitution If a -vdb.xml file has defined property values like ${my.property.name.value}, these can be replaced by actual values that are defined through JAVA system properties. To define system properties on a JBoss AS server, please consult JBoss AS documentation. |
You may choose to locally name vdb artifacts as you wish, but the runtime names of deployed VDB artifacts must either be *.vdb for a zip file or *-vdb.xml for an xml file. Failure to name the deployment properly will result in a deployment failure as the Teiid subsystem will not know how to properly handle the artifact. |
Attributes
Property Elements
<property name="security-domain" value="custom-security" />
An admin needs to configure a matching "custom-security" login module in standalone-teiid.xml configuration file before the VDB is deployed. |
<property name="connection.partialResultsMode" value="true" />
Attributes
Attributes
Property Elements
All properties are available as extension metadata on the corresponding Schema object that is accessible via the metadata API. |
Source Element
A source is a named binding of a translator and connection source to a model.
Property Elements
Metadata Element
The optional metadata element defines the metadata repository type and optional raw metadata to be consumed by the metadata repository.
Attributes
Property Elements