Showing posts with label java environments. Show all posts
Showing posts with label java environments. Show all posts

Tuesday, 27 December 2011

The JavaDB Environments

Embedded: Allows only a single application to access a database at one time.
In the embedded environment, no network access occurs.
When you load a JDBC driver from a Java program, JavaDB automatically starts in the embedded environment.
Client/server: Allows multiple applications to connect to JavaDB over the network.
To start JavaDB in the client/server environment, you need to use the server command line tool of JavaDB.

The JavaDB Directory Structure

When you install Java SE 6, JavaDB installs in the db directory of JAVA_HOME.
The db directory contains the following subdirectories:
  1. demo: Contains sample programs and scripts to use JavaDB.
  2. lib: Contains the JavaDB JAR files. You need to use the JavaDB JAR files to start, stop, and access JavaDB.
  3. frameworks: Contains scripts for setting up the environment to use JavaDB in different environments.