JBoss.orgCommunity Documentation
Having built the VDB, it must be deployed so it can be access through a JDBC connection. Note there are two steps involved in this deployment:
Deploying Teiid Embedded
Deploying VDB
Teiid Embedded is typically used in one of two manners:
As a Stand-alone Java application
In a JEE Application Server (Deploy and Create connection pool).
This example deploys Teiid Embedded as a stand-alone Java application. The sample deployment is shown below. You can find more details about deploying to application servers on the Teiid web-site
Copy the "Teiid-${version}-embedded.jar" and all dependent jars in "lib" directory in your Java application's classpath along with your VDB. If your application is already using the any of dependent jars defined in "lib" directory you can safely ignore adding that jar file to the classpath. Make sure the that the versions match
Add "Teiid-${version}-embedded.jar" to your application classpath
Add all the dependent jar files in the "lib" directory to your application's classpath. If your application is already using the any of the "lib" directory's dependent jars, you can safely ignore adding that jar to the classpath. Make sure the versions match.
Place the VDB in a folder and add this folder to your application's classpath.
Now, go to the next section to learn how to connect to the VDB