So I think this is to do with the fact that you are not specifying a target
namspace in the schema used to generate the classes.  I see from the
tools-test test case that uses the simpleNoTns.xsd schema,  that the
namespace URI for the generated artifacts is in fact the URI of the schema
file on disk (not null or "").  So the global property created in the
generated java won't be found with the lookup of (ns=null, name=Input) when
calling XMLHelper.createDocument(dob, ns, name),  hence the demand creation
of the global property.  Are you constrained to using a schema with no
target namespace?  If you had a namespace in your schema,  and used it in
the call to createDocument() then the underlying code would pick up the
global property instance that is created by the generated factory,  and you
would then never hit this concurrency issue.

Kelvin.



On 14/02/2008, Daniel Peter <[EMAIL PROTECTED]> wrote:
>
> Hi Kelvin
>
> rootElementURI is null
> rootElementName is "Input"
> They do not vary for a specific DataObject type.
>
> I cannot post the complete schemas involved; what kind
> of information are you looking for?
> Besides the complexType which is used to generate the
> SDO structure, there is a global element called
> "Input" of this complexType in the schema.
> ComplexTypes from other factories are reused.
>
>
> Regards, Daniel.
>
>
> --- kelvin goodson <[EMAIL PROTECTED]>
> schrieb:
>
> > Daniel,
>
> >   I'll check up on your last question,  but I don't
> > think multiple
> > registration of factories is the root of your issue.
> >  I am just submitting
> > an EMF bug report to cover the issue,  and I'll put
> > you on the cc list.  I'd
> > be interested to know more about what your metadata
> > looks like,  and what
> > the value of rootElementUri and rootElementName are
> > in the above snippet,
> > and do they vary?  Are you in a position to post the
> > schema that you use to
> > generate the static SDO classes?
> >
> > Regards, Kelvin.
>
>
>
>       Lesen Sie Ihre E-Mails jetzt einfach von unterwegs.
> www.yahoo.de/go
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to