Red Hat Training

A Red Hat training course is available for Red Hat JBoss Data Virtualization

2.3. Configuration

The primary way to configure Embedded JBoss Data Virtualization is with the EmbeddedConfiguration class. It is provided to the EmbeddedServer at start-up. From there the running server instance can have translators and VDBs deployed as needed.
Your application is responsible for having the appropriate classpath to utilize Teiid embedded. Typically you will want to include all of the jars from the embedded kit's lib directory. As needed by your deployment you should include jars from the optional folder along with any jars needed to provide source access. Hibernate core 4.1.6 or compatible is needed, but not included in the kit, if you wish to utilize the JDBC translator support for dependent joins using temporary tables.

Note

All Teiid jars can also be deployed as bundles in a OSGI container like Karaf. If you are working with Karaf, a feature.xml file is available in maven repo for your convenience. Here is the usage pattern:
features:addurl mvn:org.jboss.teiid/teiid/8.6.0.Final/xml/karaf-features
features:install -v teiid
If you are trying run Teidd Embedded with a Maven-based project and you are using Maven to pull artifacts, the runtime, admin, connector, translator dependencies are required:
<dependency>
    <groupId>org.jboss.teiid</groupId>
    <artifactId>teiid-runtime</artifactId>
</dependency>

<dependency>
    <groupId>org.jboss.teiid</groupId>
    <artifactId>teiid-admin</artifactId>
</dependency>

<dependency>
    <groupId>org.jboss.teiid.connectors</groupId>
    <artifactId>translator-SOURCE</artifactId>
</dependency>

<dependency>
   <groupId>org.jboss.teiid.connectors</groupId>
   <artifactId>connector-SOURCE</artifactId>
   <classifier>lib</classifier>
</dependency>