You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Fuhwei Lwo (JIRA)" <tu...@ws.apache.org> on 2006/09/08 14:11:22 UTC

[jira] Created: (TUSCANY-713) Discover and regiester new SDO types during the time of loading the XML instance document

Discover and regiester new SDO types during the time of loading the XML instance document
-----------------------------------------------------------------------------------------

                 Key: TUSCANY-713
                 URL: http://issues.apache.org/jira/browse/TUSCANY-713
             Project: Tuscany
          Issue Type: New Feature
          Components: Java SDO Implementation
    Affects Versions: Wish list
            Reporter: Fuhwei Lwo


Current SDO implementation requires one to register the SDO types before loading their instances from XML document.  The new scenario is to load the XML document before registering the types.  The SDO may require the XML document to provide some information to locate its schema or metadata location.  Annotation may be one way to do it. The schemaLocation attribute is not sufficient because it's only a hint not necessarily a physical location.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-713) Discover and regiester new SDO types during the time of loading the XML instance document

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-713?page=comments#action_12433389 ] 
            
Frank Budinsky commented on TUSCANY-713:
----------------------------------------

Yang has voluteered to prototype an SDO load option that will instruct the XMLHelper.load method to use a schemaLocation (if available) to try to register the metadata (if not already registered), before loading the rest of the document.



> Discover and regiester new SDO types during the time of loading the XML instance document
> -----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-713
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-713
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Wish list
>            Reporter: Fuhwei Lwo
>
> Current SDO implementation requires one to register the SDO types before loading their instances from XML document.  The new scenario is to load the XML document before registering the types.  The SDO may require the XML document to provide some information to locate its schema or metadata location.  Annotation may be one way to do it. The schemaLocation attribute is not sufficient because it's only a hint not necessarily a physical location.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-713) Discover and regiester new SDO types during the time of loading the XML instance document

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-713?page=all ]

ant elder updated TUSCANY-713:
------------------------------

    Fix Version/s: Wish list

> Discover and regiester new SDO types during the time of loading the XML instance document
> -----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-713
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-713
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Wish list
>            Reporter: Fuhwei Lwo
>             Fix For: Wish list
>
>
> Current SDO implementation requires one to register the SDO types before loading their instances from XML document.  The new scenario is to load the XML document before registering the types.  The SDO may require the XML document to provide some information to locate its schema or metadata location.  Annotation may be one way to do it. The schemaLocation attribute is not sufficient because it's only a hint not necessarily a physical location.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-713) Discover and regiester new SDO types during the time of loading the XML instance document

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473680 ] 

Kelvin Goodson commented on TUSCANY-713:
----------------------------------------

The above comment on resolution of this fix may seem a little odd,  since there is no "above discussion".  This is because the same fix has been submitted as part of two patches,  and the discussion was in fact in TUSCANY-1088,  hence my confusion.

> Discover and regiester new SDO types during the time of loading the XML instance document
> -----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-713
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-713
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Wish list
>            Reporter: Fuhwei Lwo
>             Fix For: Java-SDO-Mx
>
>         Attachments: ProcessSchemaLocations.713, SchemaLocationTestCase.java, SchemaLocationTestCase.java, SchemaLocationTestCase.xml, SDOUtil.java, SDOXMLResourceImpl.patch
>
>
> Current SDO implementation requires one to register the SDO types before loading their instances from XML document.  The new scenario is to load the XML document before registering the types.  The SDO may require the XML document to provide some information to locate its schema or metadata location.  Annotation may be one way to do it. The schemaLocation attribute is not sufficient because it's only a hint not necessarily a physical location.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-713) Discover and regiester new SDO types during the time of loading the XML instance document

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Goodson updated TUSCANY-713:
-----------------------------------

    Fix Version/s:     (was: Java-SDO-Mx)
                   Java-SDO-M3

> Discover and regiester new SDO types during the time of loading the XML instance document
> -----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-713
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-713
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Wish list
>            Reporter: Fuhwei Lwo
>             Fix For: Java-SDO-M3
>
>         Attachments: ProcessSchemaLocations.713, SchemaLocationTestCase.java, SchemaLocationTestCase.java, SchemaLocationTestCase.xml, SDOUtil.java, SDOXMLResourceImpl.patch
>
>
> Current SDO implementation requires one to register the SDO types before loading their instances from XML document.  The new scenario is to load the XML document before registering the types.  The SDO may require the XML document to provide some information to locate its schema or metadata location.  Annotation may be one way to do it. The schemaLocation attribute is not sufficient because it's only a hint not necessarily a physical location.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-713) Discover and regiester new SDO types during the time of loading the XML instance document

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-713?page=comments#action_12449633 ] 
            
Kelvin Goodson commented on TUSCANY-713:
----------------------------------------

The result of Yangs experimentation was to demonstrate that we can achieve this behaviour by setting options at the EMF level, in particular 
org.eclipse.emf.ecore.xmi.XMLOptions#setProcessSchemaLocations(true)

but this brings up the wider issue of addressing the passing of options, and the fact that it currently exposes EMF, so I believe we should prereq a solution to TUSCANY-928 before we can address this (and indeed this issue may be solved as part of TUSCANY-928).

> Discover and regiester new SDO types during the time of loading the XML instance document
> -----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-713
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-713
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Wish list
>            Reporter: Fuhwei Lwo
>             Fix For: Wish list
>
>
> Current SDO implementation requires one to register the SDO types before loading their instances from XML document.  The new scenario is to load the XML document before registering the types.  The SDO may require the XML document to provide some information to locate its schema or metadata location.  Annotation may be one way to do it. The schemaLocation attribute is not sufficient because it's only a hint not necessarily a physical location.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-713) Discover and regiester new SDO types during the time of loading the XML instance document

Posted by "Yang ZHONG (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang ZHONG updated TUSCANY-713:
-------------------------------

    Attachment: ProcessSchemaLocations.713
                SchemaLocationTestCase.java

Use the option from http://issues.apache.org/jira/browse/TUSCANY-928.
Please
keep the SchemaLocationTestCase.xml
replace the SchemaLocationTestCase.java
and discard the SDOUtil.java

> Discover and regiester new SDO types during the time of loading the XML instance document
> -----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-713
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-713
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Wish list
>            Reporter: Fuhwei Lwo
>             Fix For: Wish list
>
>         Attachments: ProcessSchemaLocations.713, SchemaLocationTestCase.java, SchemaLocationTestCase.java, SchemaLocationTestCase.xml, SDOUtil.java
>
>
> Current SDO implementation requires one to register the SDO types before loading their instances from XML document.  The new scenario is to load the XML document before registering the types.  The SDO may require the XML document to provide some information to locate its schema or metadata location.  Annotation may be one way to do it. The schemaLocation attribute is not sufficient because it's only a hint not necessarily a physical location.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-713) Discover and regiester new SDO types during the time of loading the XML instance document

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473108 ] 

Kelvin Goodson commented on TUSCANY-713:
----------------------------------------

Hi Yang,
I seem to have a problem with the ProcessSchemaLocations.713 file that you supplied.  The patch application file complains about line 55,  so I began applying the patch manually.  I have a couple of requests,  one trivial request is that you use the .patch extension for patches,  and if you could make them from a lower point in the directory hierarchy it would save me having to remove the java/sdo prefix from all the markup lines inside the patch (since these days I only usually check out at the sdo level for applying patches) .  The other point which is specific to this patch is the use of bulk imports via the wildcard import statement.  I don't know if we have a policy on this in general,  but I think its better practice to import only what's required.  However, in this case its more of an issue, since you have now introduced an implicit import of a class from EMF that has a well known synonym in Tuscany,  namely XMLHelperImpl.  I think it's particularly important to be specific about which classes are imported when there are two classes of the same name.  Could you please supply a fixed up patch file and I will get this out of the way,  thanks.
Kelvin.


> Discover and regiester new SDO types during the time of loading the XML instance document
> -----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-713
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-713
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Wish list
>            Reporter: Fuhwei Lwo
>             Fix For: Wish list
>
>         Attachments: ProcessSchemaLocations.713, SchemaLocationTestCase.java, SchemaLocationTestCase.java, SchemaLocationTestCase.xml, SDOUtil.java
>
>
> Current SDO implementation requires one to register the SDO types before loading their instances from XML document.  The new scenario is to load the XML document before registering the types.  The SDO may require the XML document to provide some information to locate its schema or metadata location.  Annotation may be one way to do it. The schemaLocation attribute is not sufficient because it's only a hint not necessarily a physical location.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-713) Discover and regiester new SDO types during the time of loading the XML instance document

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470572 ] 

Kelvin Goodson commented on TUSCANY-713:
----------------------------------------

Yang,
  I'll do this as soon as possible after we have resolved the patch issue in TUSCANY-928
Kelvin.

> Discover and regiester new SDO types during the time of loading the XML instance document
> -----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-713
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-713
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Wish list
>            Reporter: Fuhwei Lwo
>             Fix For: Wish list
>
>         Attachments: ProcessSchemaLocations.713, SchemaLocationTestCase.java, SchemaLocationTestCase.java, SchemaLocationTestCase.xml, SDOUtil.java
>
>
> Current SDO implementation requires one to register the SDO types before loading their instances from XML document.  The new scenario is to load the XML document before registering the types.  The SDO may require the XML document to provide some information to locate its schema or metadata location.  Annotation may be one way to do it. The schemaLocation attribute is not sufficient because it's only a hint not necessarily a physical location.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-713) Discover and regiester new SDO types during the time of loading the XML instance document

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-713?page=comments#action_12449637 ] 
            
Kelvin Goodson commented on TUSCANY-713:
----------------------------------------

One other thing I meant to add was to capture the fact that we must be able to be able to define a TypeHelper instance to be used with the "load schemas" option so that the newly found types can be registered in the context that the application desires.

> Discover and regiester new SDO types during the time of loading the XML instance document
> -----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-713
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-713
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Wish list
>            Reporter: Fuhwei Lwo
>             Fix For: Wish list
>
>
> Current SDO implementation requires one to register the SDO types before loading their instances from XML document.  The new scenario is to load the XML document before registering the types.  The SDO may require the XML document to provide some information to locate its schema or metadata location.  Annotation may be one way to do it. The schemaLocation attribute is not sufficient because it's only a hint not necessarily a physical location.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-713) Discover and regiester new SDO types during the time of loading the XML instance document

Posted by "Yang ZHONG (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang ZHONG updated TUSCANY-713:
-------------------------------

    Attachment: SDOXMLResourceImpl.patch

1. The patch application file complains about line 55
    http://incubator.apache.org/tuscany/patches.html
    recommends "svn" to generate patchs.
    I run it on Windows. If the problem stays, do you want to create a SubVersion issue?

2. .patch, lower hierarchy and specific import
    I don't have a preference, yours works for me. See the attached new patch.

> Discover and regiester new SDO types during the time of loading the XML instance document
> -----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-713
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-713
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Wish list
>            Reporter: Fuhwei Lwo
>             Fix For: Wish list
>
>         Attachments: ProcessSchemaLocations.713, SchemaLocationTestCase.java, SchemaLocationTestCase.java, SchemaLocationTestCase.xml, SDOUtil.java, SDOXMLResourceImpl.patch
>
>
> Current SDO implementation requires one to register the SDO types before loading their instances from XML document.  The new scenario is to load the XML document before registering the types.  The SDO may require the XML document to provide some information to locate its schema or metadata location.  Annotation may be one way to do it. The schemaLocation attribute is not sufficient because it's only a hint not necessarily a physical location.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-713) Discover and regiester new SDO types during the time of loading the XML instance document

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-713?page=all ]

Kelvin Goodson updated TUSCANY-713:
-----------------------------------

    Attachment: SDOUtil.java
                SchemaLocationTestCase.java
                SchemaLocationTestCase.xml

The SDOUtil.java attachment contains a method of achieving the desired result in the processSchemaLocations() method, thanks to Yang for this, but the solution has been overtaken by events,  and we should use technical elements of this solution within the broader scope of the solution to TUSCANY-928 to achieve our aims.

The test case will obviously need to be reworked a little in the light ot TUSCANY-928 also.

> Discover and regiester new SDO types during the time of loading the XML instance document
> -----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-713
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-713
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Wish list
>            Reporter: Fuhwei Lwo
>             Fix For: Wish list
>
>         Attachments: SchemaLocationTestCase.java, SchemaLocationTestCase.xml, SDOUtil.java
>
>
> Current SDO implementation requires one to register the SDO types before loading their instances from XML document.  The new scenario is to load the XML document before registering the types.  The SDO may require the XML document to provide some information to locate its schema or metadata location.  Annotation may be one way to do it. The schemaLocation attribute is not sufficient because it's only a hint not necessarily a physical location.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-713) Discover and regiester new SDO types during the time of loading the XML instance document

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Goodson resolved TUSCANY-713.
------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Wish list)
                   Java-SDO-Mx

I have applied this patch.  Given the discussion above, I changed the comment in the patch from
// TODO restore options 
to
// TODO consider whether we should restore options here

> Discover and regiester new SDO types during the time of loading the XML instance document
> -----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-713
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-713
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Wish list
>            Reporter: Fuhwei Lwo
>             Fix For: Java-SDO-Mx
>
>         Attachments: ProcessSchemaLocations.713, SchemaLocationTestCase.java, SchemaLocationTestCase.java, SchemaLocationTestCase.xml, SDOUtil.java, SDOXMLResourceImpl.patch
>
>
> Current SDO implementation requires one to register the SDO types before loading their instances from XML document.  The new scenario is to load the XML document before registering the types.  The SDO may require the XML document to provide some information to locate its schema or metadata location.  Annotation may be one way to do it. The schemaLocation attribute is not sufficient because it's only a hint not necessarily a physical location.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org