JDBCClient.java shows making connections to Teiid in through both a Driver
and a DataSource.

The program expects four arguments <host> <port> <vdb> <sql-command>.  There
are helper run scripts that can be run as follows:

NOTE: The default username and password (user/user) are hard coded in the JDBCClient.java file.  
	If these defaults are not being used, then edit JDBCClient.java  and update the 
	username and password for a valid user account.

$./run.sh host port vdb "query"

Note that the query is in quotes so that it is understood as a single argument.

e.g. With the portfolio vdb deployed:

$./run.sh localhost 31000 dynamicportfolio "select * from tables"

See the other examples for deployable .vdb and .xml files to create vdbs.

NOTE: To run more advanced queries, it would be better a fully featured Java client, 
such as SQuirreL [http://www.squirrelsql.org/].




The following instructions demonstrate the ability to federate the relational and text-file data sources.

==== Using the simpleclient example ====

1) Change your working directory to <your installation>/jboss-soa-p-5/eds/teiid/examples/simpleclient

2) If the default user account is not being used, then edit JDBCClient.java and specify a username and password for a
   valid user account.

3) Use the simpleclient example run script, using the following format

$./run.sh localhost 31000 weather "example query" 