The <session-broker> Element

The SessionBroker is a mechanism that enables client applications to view several databases through a single session. The <session-broker> element enables you to configure a SessionBroker in the Sessions XML file, as follows:

  1. Configure the SessionBroker sessions in the Sessions XML file. These are the DatabaseSessions or ServerSessions the SessionBroker uses to communicate with the databases.
  2. Add the SessionBroker to the Sessions XML file using the <session-broker> element.
  3. Populate the <session-broker> element with a name, and the sessions you configured in Step 1.

    Example B-19 Configuring a SessionBroker in Sessions XML

    /* Configure the sessions for the SessionBroker */
    <session>
        <name>EmployeeSession</name>
        ...
    </session>
    <session>
        <name>ProjectSession</name>
        ...
    </session>
    /* Configure the SessionBroker */
    <session-broker>
    /* Name the SessionBroker */
        <name>EmployeeAndProjectBroker</name>
    /* Specify the sessions contained in the SessionBroker */
            <session-name>EmployeeSession</session-name>
            <session-name>ProjectSession</session-name>
    </session-broker>
        ...


Related Topics

Navigating the Sessions XML File
The XML Header
The <toplink-configuration> Element
The <session> Element
JTA Configuration

 

Copyright © 1997, 2004, Oracle. All rights reserved.