Setting up the Environment
The ActiveSpaces JDBC driver is bundled with the ActiveSpaces Java client API and included in
tibdg.jar
. To use the ActiveSpaces JDBC driver from a client application, follow the same steps for setting up your application that you used for the Java API. For information about setting up your environment to build and run the ActiveSpaces samples, refer to the
TIBCO_HOME/as/<version>/samples/src/Java/README.md file.
You can use the same environment for developing Java client applications. The ActiveSpaces JDBC driver is a Type 2 driver and uses native code for communicating with a data grid. When using the ActiveSpaces JDBC driver with client JDBC tools, you must configure the location of the ActiveSpaces native libraries.
On Linux/Mac, you can start the tool by either using the OS environment variable to specify the search path for native libraries (ex: LD_LIBRARY_PATH pointing to the AS lib directory) or by specifying that path with the following Java command-line options:
-Djava.library.path=${TIBDG_ROOT}/lib
On Windows, java.library.path
is not sufficient to find the dependent native libraries. You must include the paths to all native libraries (both AS and FTL bin directories) in the PATH environment variable and can avoid using the java.library.path
.
After setting up the environmentRegistering the ActiveSpaces JDBC Driver with the Driver Manager.