Cezar,

Thanks for the reply.  The issue is that we're using XMLBeans indirectly
as the data binding option with the Apache Axis2 WSDL2Java tool.
Several services are providing "convenience" libraries to simplify
interfacing to the service.  These convenience libraries are being
placed in common locations, so I can't take advantage of heirarchical
class loaders.  What complicates this even more is that namespace to
package overrides are being inconsistently applied so the same schema
may have several implementation mappings based on the package prefix
that was passed to WSDL2Java through the .xsdconfig file.

>From your response, the right approach would seem to be a single
XMLBeans representation of common types that uses a consistent
.xsdconfig file rather than multiple flavors.  This is looking more like
a configuration management issue.

Still, it would be nice to have an option to override the default Schema
Type System name.  The downside seems to be redundant implementations of
common types, but I believe the result should still work.  Is that true?

-----Original Message-----
From: Cezar Andrei [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 3:08 PM
To: [email protected]
Subject: RE: newbie--override schemaorg_apache_xmlbeans prefix

Richard,

It isn't supposed to work like this. 

The XMLSchema spec assumes that everybody is using namespaces and that
the QNames for different types and elements do not collide. This is the
model that XMLBeans uses, which is the same as java packages and classes
work.

In the rare cases when there is a requirement for more than this, as
java solves this problem, the solution is to use different classloaders.
Each classloader will have access to a non-coliding set of schema
artifacts.

If you describe your problem in more details maybe somebody on the list
might come up with a simpler solution.

Cezar


> -----Original Message-----
> From: Lucente, Richard D [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 11, 2007 12:03 PM
> To: [email protected]
> Subject: newbie--override schemaorg_apache_xmlbeans prefix
> 
> Is it possible to override the default "schemaorg_apache_xmlbeans"
> prefix?  There are multiple xbean-packaged.jars on our project.  We 
> could go through the pain of generating one for all and deconflicting,

> but it would be much easier if we could avoid package name overlaps.
> Any suggestions?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to