We prepared a VDB in the previous part of the TEIID tutorial.
Now we want to test it on a TEIID server.
To do so we need a fresh and clean TEIID installation.
We download a JBoss AS version 7.1.1 and unzip it into a folder (I'm runniong the tutorial on windows, but you can do the same on linux).
I usually check that JBoss works out of the box before installing anything.
When you have checked the JBoss AS installation you are ready to install TEIID, that is pretty easy stuff to do as you have to download the TEIID distribution and just unpack it into the JBoss installation; there is the same folder structure so everything will go to its place.
For the demo we'll going to run JBoss in standalone mode, this means that we'll look at the files into the standalone folder.
Since there is a standalone-teiid.xml file I usually create a start script to set the config file to be that one, but is a habit of mine, you can rename it standalone.xml and work on that (just keep the original standalone somewhere should you need it).
Done that just start JBoss again and this time we'll see that also TEIID modules gets loaded and it is ready and running; obviously there is no DB right now.
Shut down everything and make some few configurations (all these stuffs can be done in different ways, as a tutorial I prefer to show what gets written into the XML file so that is known what web consolle does behind the scene).
Since we are going to connect to MySQL we need to prepare the module for MySQL with the driver so that JBoss and TEIID can make a connection to MySQL create a datasource to our DB with the correct jndi name we used in the VDB.
The TEIID installation comes with a usefull set of examples/templates for the modules so we just have to copy the MySQL one in the modules folder, copy the jdbc driver in the folder, configure the modules with the correct name of the lib and the driver is ready.
We than need to add the driver information within the standalone.xml file.
Done that we can add the driver information in the standalone.xml file and set all the parameters to be able to correctly connect to the DB.
When you have finished the configuration start JBoss and go to the web concolle and check the functioning of the datasource testing the connection with the DB.
Once we have finished this part we can deploy the VDB.