Good point Daniel. For Java deserialization we can do either or both of 
the following:

1) provide a way to set default options, e.g., 
SDOUtil.setDefaultXMLOptions(HelperContext, Object options).
2) provide a way to set the load options on the ObjectInputStream, e.g., 
SDOObjectInputStream.setXMLOptions(Object options).

I think #1 is a general direction the SDO spec (SDO 3) wants to move, but 
#2 may be useful as well.

Frank.

Daniel Peter <[EMAIL PROTECTED]> wrote on 05/25/2007 04:15:15 PM:

> Hi Frank
> 
> Exposing the RECORD_UNKNOWN_FEATURE option is sure a good idea. 
> But I'm not sure if this is sufficient from the Java deserialization
> point of view.
> 
> During Java deserialization the method readDataObject in the class 
> HelperProviderImpl.ResolvableImpl
> calls the XMLHelper.load() method (currently without passing any 
options).
> There would be a mechanism needed, that allows to specify options 
> which would then be later picked up by readDataObject during Java 
> deserialization.
> 
> What do you think?
> 
> Thanks, 
> Daniel.
> 
> ----- Ursprüngliche Mail ----
> Von: Frank Budinsky <[EMAIL PROTECTED]>
> An: [email protected]
> Gesendet: Freitag, den 25. Mai 2007, 16:30:52 Uhr
> Betreff: Re: Evolution of a specific SDO structure over time
> 
> Hi Daniel,
> 
> I guess it would be OK, but the downside of making it a default option 
> (i.e., always do it) is that the SDO loader will then pretty much never 
> fail - you'll be able to load any junk without getting any load errors.
> 
> The other alternative is to expose the RECORD_UNKNOWN_FEATURE option as 
> one supported by Tuscany SDO, so you can pass it to the XMLHelper.load() 

> method when you want this behavior.
> 
> Comments? What do others thing about this?
> 
> Thanks
> Frank.
> 
> Daniel Peter <[EMAIL PROTECTED]> wrote on 05/25/2007 10:12:29 AM:
> 
> > Hi Frank 
> > 
> > It works if the following line is added to the
> > configureXMLResource method of class DataObjectUtil:
> > 
> > resource.getDefaultLoadOptions().put(XMLResource.
> > OPTION_RECORD_UNKNOWN_FEATURE,Boolean.TRUE);
> > 
> > Could you add this?
> > 
> > Regards, Daniel.
> > 
> > 
> > 
> >       __________________________________  Kennt man wirklich jeden 
> > über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever. 
> www.yahoo.de/clever
> > 
> > ---------------------------------------------------------------------
> > 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]
> 
> 
> 
> 
> 
> 
> 
> 
>       __________________________________  Yahoo! Clever: Stellen Sie
> Fragen und finden Sie Antworten. Teilen Sie Ihr Wissen. 
www.yahoo.de/clever


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

Reply via email to