95 Configuring Database Sessions

This chapter describes the various components that you must configure in order to use database sessions.

This chapter includes the following sections:

Table 95-1 lists the configurable options for database sessions.

95.1 Introduction to Database Session Configuration

Table 95-1 lists the configurable options for database sessions.

Table 95-1 Configurable Options for Database Session

Option Oracle JDeveloper
TopLink Workbench
Java

External connection pools (see Section 95.2, "Configuring External Connection Pools")

Supported Supported Supported

Primary mapping project (see Section 89.2, "Configuring a Primary Mapping Project")

Supported Supported Supported

Session login (see Section 89.3, "Configuring a Session Login")

Supported Supported Supported

Logging (see Section 89.4, "Configuring Logging")

Supported Supported Supported

Multiple mapping projects (see Section 89.5, "Configuring Multiple Mapping Projects")

Supported Supported Supported

Performance profiler (see Section 89.6, "Configuring a Performance Profiler")

Supported Supported Supported

Exception handler (see Section 89.7, "Configuring an Exception Handler")

Supported Supported Supported

Session customizer class (see Section 89.8, "Configuring a Session Customizer Class")

Supported Supported Supported

Server platform (see Section 89.9, "Configuring the Server Platform")

Supported Supported Supported

Session event listeners (see Section 89.10, "Configuring Session Event Listeners")

Supported Supported Supported

Coordinated cache (see Chapter 103, "Configuring a Coordinated Cache")

Supported Supported Supported

Integrity checker (see Section 89.11, "Configuring the Integrity Checker")

Supported Supported Supported

Named queries (see Section 89.13, "Configuring Named Queries at the Session Level")

Unsupported Unsupported Supported

95.2 Configuring External Connection Pools

Unlike a server session, a database session does not provide internal connection pools. A database session only has a single database connection that it uses for its life cycle.

Oracle recommends that you use a server and client session in a three-tier environment. Alternatively, you can use a database session with an external connection pool (see Section 97.4, "Configuring External Connection Pooling"): in this case, you should allocate a new database session per user/thread or request.

WARNING:

Do not allow the concurrent use of a database session by multiple users/threads.

The usage of an external connection pool reduces the number of the database session login and logout attempts to acquire the database connection.