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, log4j , and Apache Thrift's Java library. All libraries are required at both compile and run time.
The appropriate versions of the third-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:
db_thrift_client.jar
db_thrift_interface.jar
libthrift.jar
log4j-1.2-api.jar
log4j-api.jar
log4j-core.jar
log4j-slf4j-impl.jar
slf4j-api.jar