@@ -5,7 +5,11 @@ create database. This version offers the most flexibility for outputs to databas
55
66# Setup
77
8- Before you run the sample, you will need to edit [ oil.dat] ( oil.dat ) , and configure
8+ Before you run the sample, please make sure you created an example database.
9+ See the * Setup the sample database* section for [ DB2] ( ../../README.DB2.md ) ,
10+ [ MySQL] ( ../../README.MySQL.md ) , [ Microsoft SQL Server] ( ../../README.SQLServer.md ) .
11+
12+ Then, you will need to edit [ oil.dat] ( oil.dat ) , and configure
913paths. In particular, you want to add the JDBC connector jar, for instance:
1014
1115```
@@ -14,21 +18,6 @@ paths. In particular, you want to add the JDBC connector jar, for instance:
1418 IloOplImportJava("../../external_libs/mssql-jdbc-7.2.2.jre8.jar")
1519```
1620
17- And you want to specify the configuration file for your database connection:
18-
19- ```
20- // This is the configuration file for accessing your database.
21- var jdbcConfigXml = "../../data/db_mssql.xml";
22- ```
23-
24- Lastly, you want to point to the jdbc custom data source jar.
25- It is distributed as binaries in the [ lib] ( ../../lib ) directory:
26-
27- ```
28- // The jar containing the jdbc custom data source
29- IloOplImportJava("../../lib/jdbc-custom-data-source.jar");
30- ```
31-
3221# Customize table creation
3322
3423Instead of using default table creation, this sample relies on SQL statement executed when the model is run.
@@ -53,7 +42,7 @@ To run the sample, invoke the `run.bat` script:
5342```
5443[P36] D:\>
5544run.bat
56- Buildfile: D:\opl\OPL-jdbc-custom-data-source\examples\ilo_opl_call_java \build.xml
45+ Buildfile: D:\opl\OPL-jdbc-custom-data-source\examples\advanced_queries \build.xml
5746
5847platform:
5948
0 commit comments