Skip Headers

# TopLink Sessions XML File

Previous

Next

In the generated `sessions.xml` file, the `name` element is the name of the context path and the `project-xml` element is the name of the generated project XML file.

Example: Typical Generated sessions.xml File shows a typical `sessions.xml` file where the context path is `examples.ox.model`.

Typical Generated sessions.xml File

    <?xml version="1.0" encoding="US-ASCII"?>
    <toplink-sessions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file://xsd/sessions_10_0_3.xsd" version="0">
        <session xsi:type="database-session">
            <name>customer_example</name>
            <primary-project xsi:type="xml">purchaseOrder.xml</primary-project>
            <login xsi:type="xml-login">
                <platform-class>oracle.toplink.ox.platform.SAXPlatform</platform-class>
            </login>
        </session>
    </toplink-sessions>

As in any TopLink project, the TopLink session is your primary facade to the TopLink XML API (see "Using TopLink JAXB Compiler Generated Files at Run Time").