Having built the VDB or using the example dynamic vdb, it must be deployed into the JBoss AS server so it can be accessed using a Teiid JDBC connection.
This example is using the dynamic vdb and requires that it be deployed into the JBoss AS server. There are different ways to deploy a VDB file into JBoss AS 7.1. Below is one simple method which works by copying the VDB file to a certain location under the JBoss AS 7.1.
Deploy using CLI CLI based deployment is another simple way to deploy a variety of artifacts into JBoss AS 7.1. Execute "jboss-admin.sh" in the "<jboss-install>/bin" directory and connect to the running JBoss AS instance. Then issue the following command: deploy <jboss-install>/docs/teiid/examples/dynamicvdb-portfolio/portfolio-vdb.xml |
If the data sources are created correctly and VDB deployed correctly, then you will see an informational message in the JBoss AS 7.1 console that the VDB has been deployed and in "active" state. If there are any errors then you will see the VDB not deployed or in an "inactive" state. Find the issues on the console and fix them before you proceed any further. |
If you see the VDB in the "active" state, then go to the next section to learn how to connect to the VDB.