MultiConnect.sqlj sample program

The sample program MultiConnect.sqlj creates two databases with one table each, Orders and Items, and inserts two records in the Orders table and corresponding records in the Items table. The program prints the order line items for all the orders from both tables, which exist in different databases, by creating separate connection contexts for each database.

You can find the MultiConnect.sqlj sample program code in the $INFORMIXDIR/jdbc/demo/sqlj directory.

MultiConnect.sqlj calls the methods executeSQLScript() and getConnect(). These methods are contained in demoUtil.java, which follows this program.