JBoss.orgCommunity Documentation

Chapter 3. Setup Data Sources / Connection Factories

3.1. Install Data Sources / Connection Factories
3.2. Describe the CSV file and its contents

This examples uses two data sources, a relational database and a text file. An HSQL database is used here since it is Open Source, comes with JBoss AS and is light-weight. This section will describe how to setup the data sources in order to run the example.

We need to create and deploy the required Connection Factories for HSQL database and File sources. Connection Factories are sources that provide the data when 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

Perform the following steps to install and setup the data sources:

Make sure you did not have any issues when creating the schema as it is needed for going forward in this example.

In order to use a Text file as the source, we need a data file which defines the data in the table

You can use the provide data files or create your own data files.

At this point, both data sources are ready to access.