Table of Contents
In this chapter, we describe in detail all the aspects of Berkeley DB client driver APIs. The client driver APIs are modeled after Java base APIs. Therefore a good understanding of Berkeley DB Getting Started with Transaction Processing is necessary.
This chapter begins by describing how to connect to a server. It then follows with a detailed list of differences between the client driver APIs and Java base APIs.
The client driver requires JDK 8 or above, slf4j 1.5.8, log4j 1.2.14, and Apache Thrift's Java library 0.9.2. All libraries are required at both compile and run time.
The 3rd party libraries: slf4j, log4j and Apache Thrift are bundled in the release package. You do not need to install them separately.
For Java applications, you should add the
following jar files under the lang/thrift/jars
directory to your applications classpath:
log4j.jar
slf4j-api.jar
slf4j-log4j12.jar
libthrift.jar
db_thrift_interface.jar
db_thrift_client.jar