Bug 297615 - Server NativeAPITest should support non-Oracle DB
Summary: Server NativeAPITest should support non-Oracle DB
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2009-12-11 13:49 EST by Kevin Yuan CLA
Modified: 2022-06-09 10:21 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2009-12-11 13:49:24 EST
Since there is a hard code in sessions.xml to set DB platform:
<platform-class>org.eclipse.persistence.platform.database.OraclePlatform</platform-class> These tests failed on all non-Oracle DB.
Comment 1 Kevin Yuan CLA 2009-12-11 13:58:16 EST
Based on the build.xml change with passing a real DB platform into sessions.xml during build ejb jar file, the sessions.xml just like the following:
<?xml version="1.0" encoding="US-ASCII"?>
<sessions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file://xsd/eclipse_persistence_sessions_1_0.xsd" version="1.0">
    <session xsi:type="server-session">
        <name>NativeAPITest</name>
        <server-platform xsi:type="%%server-platform-class%%"/>
        <event-listener-classes/>
        <logging xsi:type="eclipselink-log">
            <log-level>finest</log-level>
        </logging>
        <primary-project xsi:type="xml">META-INF/NativeAPITestProject.xml</primary-project>
        <login xsi:type="database-login">
            <platform-class>%%database-platform%%</platform-class>
            <external-connection-pooling>true</external-connection-pooling>
            <external-transaction-controller>true</external-transaction-controller>
            <sequencing>
                <default-sequence xsi:type="table-sequence">
                    <name>Default</name>
                </default-sequence>
            </sequencing> 
            <datasource lookup="string">%%data-source-name%%</datasource>
        </login>
    </session>
</sessions>

 Code reviewed by Yiping Zhao.
Comment 2 Kevin Yuan CLA 2009-12-11 14:00:45 EST
Checked into trunk, revision: 6047
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:21:56 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink