|[eclipselink-dev] MissingDescriptorListener and deployment xml|
bugs 231312, 231897, 223913, 228895 are all related to the 'native' deployment XML
This thread started with o.e.p.sessions.factories.MissingDescriptorListener - it is used in o.e.p.sessions.factories.XMLProjectReader
to read in legacy TopLink 10.1.3/11.1.1 deployment XML as well as EclipseLink 1.0 deployment XML. However, the namespace prefixes are different "toplink:" vs. "eclipselink:"
Some changes were checked-in to fix some code in the listener:
Unfortunately any legacy TopLink deployment XML read in would not be parsed correctly since it has the TopLink namespace prefix. Further down, there is:
The code in OXMObjectPersistenceRuntimeXMLProject uses the
TopLink namespace prefix; thus any EclipseLink deployment XML written
out that uses XMLBinaryDataMapping
I discussed this with Blaise and he agreed that the best way to handle this is to have two new MOXy capabilities:
Given the timelines for EclipseLink milestones and the 1.0 release,
he did not want to commit to working on the feature (there was an ADE
bug tracking this and just yesterday,
A NamespaceResolvableProject can be built with some other
project's NamespaceResolver, or it can build its own, based
on overridable methods
As a side-effect we can re-assemble the class hierarchy of RuntimeXMLProject's
to proper single-rooted hierarchy:
* this file is ~7000 lines of duplicated code cut-&-paste from ObjectPersistenceRuntimeXMLProject and ObjectPersistenceRuntimeXMLProject_11_1_1.
With a single-root hierarchy, it shrinks down to ~85 lines.
Whenever the default namespace feature becomes available in EclipseLink, we can override the getPrimaryNamespacePrefix method in EclipseLinkObjectPersistenceRuntimeXMLProject to return the empty string "" - and we can still inherit 100% of the code in the super-classes above.
All the patches and new source files are attach'd to bug 231312.
The Core LRG runs and I have manually run some DBWS binary-attachment testcases
Mike Norman | Principal Software Designer | 613.288.4638
Oracle Server Technologies | EclipseLink Product
45 O'Connor Street, Suite 400 | Ottawa, ON K1P 1A4 | (fax) 613.238.2818
Back to the top