skip to main content
Setting Up the samples : Setting up a sample on Windows
 

Setting up a sample on Windows

The following steps provide the process of setting up the schema, building the IP, and configuring the OpenAccessSDK810_Java service.
1. Build the IP module:
a. Set CLASSPATH to install_dir\ip\oajava\oasql.jar.
c:\> set CLASSPATH=c:\program files\datadirect\oaserver70\ip\oajava\oasql.jar
b. Change to the sample directory and compile the Java classes.
c:\> cd intall_dir\ip\oajava\example1
c:\> javac *.java
2. Run the OpenAccess SDK Management Console and modify the OpenAccessSDK810_Java service to specify the IP module and schema\example as the schema path.
a. Run the OpenAccess SDK Management Console.
b. Expand the OpenAccessSDK810_Java service node to the Data Source Settings node:
*Select example for the example1 or example3 sample.
*Select memory for the memory sample.
c. Select the IP Parameters folder.
d. Modify the DataSourceIPSchemaPath attribute to install_dir\ip\schema\example, where example is replaced by example1, example3, or memory.
e. Modify the DataSourceIPClass attribute to the class name of the IP: oajava/example/damip, where example is replaced by example1, example3, or memory.
f. Save the settings and restart the OpenAccessSDK810_Java service.
3. From an OpenAccess SDK client, connect to the IP module you have just built:
*Use the example data source for example1 or example3. example1 and example3 do not require a user name and password.
*Use the memory data source to connect to the memory sample. The memory sample requires the user name pooh and the password bear.