Bug 281555 - Initialization of JPA using old native mapping call SessionCustomizer 2x
Summary: Initialization of JPA using old native mapping call SessionCustomizer 2x
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P2 minor (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-25 13:57 EDT by Sebastien Tardif CLA
Modified: 2022-06-09 10:32 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastien Tardif CLA 2009-06-25 13:57:27 EDT
Below is persistence.xml defining two different persistence-unit reusing old native TopLink mapping. Strangely, the SessionCustomizer of each persistence-unit is called two times. It seems that all sessions in sessions.xml are initialized in each mention in the <properties> section. 

Please fix, that's not right.

<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
<persistence-unit name="AllInOne" transaction-type="JTA">
<description>This represent all CITYADM schema mappings. It does include pmsi.</description>
<jta-data-source>jdbcxa/CityTimeDataSource</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.session-name" value="AllInOne"/>
<property name="eclipselink.sessions-xml" value="sessions.xml"/>
</properties>
</persistence-unit>
<persistence-unit name="DataServices" transaction-type="JTA">
<description>This represent all REPORTADM schema mappings</description>
<jta-data-source>jdbcxa/DataServicesDataSource</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.session-name" value="DataServices"/>
<property name="eclipselink.sessions-xml" value="sessions.xml"/>
</properties>
</persistence-unit>
</persistence>
Comment 1 Tom Ware CLA 2009-07-08 13:04:32 EDT
Setting target and priority.  See the following page for details of what these settings mean. http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 2 Peter Krogh CLA 2009-11-27 13:41:20 EST
This bug fix did not make the cut off for 2.0.0. We are deferring the bugs to Future where we can properly sort them all together based on community votes and severity. We will then assign them accordingly to future patch sets and releases.
Comment 3 Peter Krogh CLA 2009-11-30 11:36:50 EST
Changing the priority of the bugs that have been recently triaged to future.  Targetting them to P2 will differentiate them from the P3s that have been triaged into future earlier.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:32:24 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink