JBoss.orgCommunity Documentation
Having built the VDB, it must be deployed into Teiid server, so it can be accessed through a JDBC connection.
This example deploys Teiid within a JBoss AS. The sample deployment is shown below. You can find more details about deploying to application servers on the Teiid web-site
Before we can deploy the VDB to the server, we need to create and deploy the required Connection Factories for Derby and File sources. Connection Factories are sources that provide the data then their data is integrated through Teiid. If you are familiar with creating data sources or connection factories in JBoss AS, then this is exactly the same operation.
For this example we need to create three (2) different data sources. You would first need to create a data source to Derby, then to File source. See or copy the following
${teiid-examples}/portfolio/portfolio-ds.xml ${teiid-examples}/portfolio/marketdata-file-ds.xml
files into "${jboss-install}/server/{profile}/deploy" directory.
The above data sources provide the data to your VDB. Now to deploy your VDBl place your VDB file (either the dynamicvdb-portfolio/portfolio-vdb.xml file or the full .vdb file) in a the "${jboss-install}/server/{profile}/deploy" directory. If the JBoss AS is not already started, start by running the "${jboss-install}/bin/run.sh" or "${jboss-install}/bin/run.bat" scripts. Check the logs or the console to make sure there were no errors during the deployment of the VDB.
Now, go to the next section to learn how to connect to the VDB