Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363739

Summary: Performance - reduce the amount of namespace declarations being written
Product: z_Archived Reporter: Denise Smith <denise.mahar>
Component: EclipselinkAssignee: Denise Smith <denise.mahar>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Proposed changes
none
Test case changes
none
Additional change to XMLObjectBuilder none

Description Denise Smith CLA 2011-11-14 14:26:50 EST
Reduce the number of namespace declarations being rewritten in an XML document by calculating what we need where possible in advance. In JAXB namespaceresovlers on descriptors can have all referenced children`s (and grandchildren) namespaces added to their namespaceresolver to help with this.  

Additionally don`t necessarily  add an objects targetNamespace to it`s own namespaceresolver.  Don`t add xsi namespace to a namespaceresolver just because it`s nillable or has inheritance.  Instead modify OXM to add those namespaces declarations on the fly if needed.
Comment 1 Denise Smith CLA 2011-11-14 15:38:36 EST
Created attachment 206987 [details]
Proposed changes
Comment 2 Denise Smith CLA 2011-11-14 15:39:02 EST
Created attachment 206988 [details]
Test case changes
Comment 3 Denise Smith CLA 2011-11-18 13:10:46 EST
Created attachment 207241 [details]
Additional change to XMLObjectBuilder
Comment 4 Denise Smith CLA 2011-11-18 16:46:01 EST
Fixed in 2.3, Bug 364203 opened to track required changes in 2.4
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:07:49 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:15:03 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink