This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 331712 - Allow Isolated classes to work with client session broker
Summary: Allow Isolated classes to work with client session broker
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: Tom Ware CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-02 14:30 EST by Tom Ware CLA
Modified: 2022-06-09 10:06 EDT (History)
1 user (show)

See Also:


Attachments
proposed change 2.1.2 (1.78 KB, patch)
2010-12-02 14:43 EST, Tom Ware CLA
no flags Details | Diff
Changes for trunk - slightly less restrictive (3.29 KB, patch)
2010-12-02 15:24 EST, Tom Ware CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Ware CLA 2010-12-02 14:30:56 EST
Currently sessionBroker.createClientSessionBroker throws an exception if any of the classes owned by the sessionbroker use an isolated cache.  If the classes are all isolated in the UnitOfWork, a client session broker should be allowed to be created.

The code change changes this:

                if (serverSession.getProject().hasIsolatedClasses()) {
                    throw ValidationException.isolatedDataNotSupportedInSessionBroker(sessionName);
                }

To This:

                if (serverSession.getProject().hasIsolatedClasses() && serverSession.getProject().hasNonIsolatedUOWClasses()) {
                    throw ValidationException.isolatedDataNotSupportedInSessionBroker(sessionName);
                }
Comment 1 Tom Ware CLA 2010-12-02 14:43:53 EST
Created attachment 184388 [details]
proposed change 2.1.2
Comment 2 Tom Ware CLA 2010-12-02 15:24:07 EST
Created attachment 184395 [details]
Changes for trunk - slightly less restrictive

Chanes for trunk allow descriptors that are not isolated AND are not isolated in the UOW
Comment 3 Tom Ware CLA 2010-12-03 10:26:40 EST
Above fixes checked in.

Tested with JPA and Foundation LRG

Reviewed by Gordon Yorke
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:06:17 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink