Preface
Prev |  | Next

## Preface

This document describes how to use transactions with your Berkeley DB, Java Edition applications. It is intended to describe how to transaction protect your application's data. The APIs used to perform this task are described here, as are the environment infrastructure and administrative tasks required by a transactional application. This book also describes multi-threaded JE applications and the requirements they have for deadlock detection.

This book is aimed at the software engineer responsible for writing a transactional JE application.

This book assumes that you have already read and understood the concepts contained in the Getting Started with Berkeley DB Java Edition guide.

## Conventions Used in this Book

The following typographical conventions are used within in this manual:

Class names are represented in `monospaced font`, as are `method names`. For example: "The `Environment.openDatabase()` method returns a `Database` class object."

Variable or non-literal text is presented in italics. For example: "Go to your JE_HOME directory."

Program examples are displayed in a `monospaced font` on a shaded background. For example:

    import com.sleepycat.je.Environment;

    ...

    // Open the environment. Allow it to be created if it does not already exist.
    Environment myDbEnv;

In some situations, programming examples are updated from one chapter to the next. When this occurs, the new code is presented in `monospaced bold` font. For example:

    import com.sleepycat.je.Environment;
    import com.sleepycat.je.EnvironmentConfig;
    import java.io.File;

    ...

    // Open the environment. Allow it to be created if it does not already exist.
    Environment myDbEnv;
    EnvironmentConfig envConfig = new EnvironmentConfig();
    envConfig.setAllowCreate(true);
    myDbEnv = new Environment(new File("/export/dbEnv"), envConfig);

### Note

Finally, notes of special interest are represented using a note block such as this.

### For More Information

Beyond this manual, you may also find the following sources of information useful when building a transactional JE application:

- Getting Started with Berkeley DB Java Edition

- Berkeley DB Java Edition Javadoc

- Berkeley DB Java Edition Collections Tutorial

Prev |  | Next
Getting Started with Berkeley DB, Java Edition Transaction Processing | Home | Chapter 1. Introduction