Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-179

Create and use some wrapper around javax.xml.validation.Schema

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.5 RC2
    • Component/s: OXM, XML
    • Labels:
      None

      Description

      Many spring-ws components use Schema, but only via org.springframework.core.io.Resource which enforces reloading an recreating. Schema creation is very expensive operation and therefore should be better to have some component holding schema (maybe ?org.springframework.xml.validation.XmlValidator?) and use this component as alternative schema parameter for Schema using components.

        Issue Links

          Activity

          Hide
          arjen.poutsma Arjen Poutsma added a comment -
          Show
          arjen.poutsma Arjen Poutsma added a comment - Frameworks we could use for this: http://ws.apache.org/commons/XmlSchema/index.html https://xsom.dev.java.net/
          Hide
          lexicore Aleksei Valikov added a comment -

          I'd opt to XSOM since this would allow easier integration with XJC and JAXB RI.

          I'm not quite sure which "schema-using components" are meant though.

          Show
          lexicore Aleksei Valikov added a comment - I'd opt to XSOM since this would allow easier integration with XJC and JAXB RI. I'm not quite sure which "schema-using components" are meant though.
          Hide
          anthavio Martin Vanek added a comment -

          I meant especially org.springframework.oxm.jaxb.Jaxb2Marshaller and org.springframework.xml.validation.XmlValidator. They are both loading schema through spring Resource interface so reusing one loaded schema instance is impossibe.

          Show
          anthavio Martin Vanek added a comment - I meant especially org.springframework.oxm.jaxb.Jaxb2Marshaller and org.springframework.xml.validation.XmlValidator. They are both loading schema through spring Resource interface so reusing one loaded schema instance is impossibe.
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          XSOM is Java 5 only, while Apache XmlSchema is Java 1.4 and higher. So I prefer XmlSchema.

          Show
          arjen.poutsma Arjen Poutsma added a comment - XSOM is Java 5 only, while Apache XmlSchema is Java 1.4 and higher. So I prefer XmlSchema.
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          Additionally, XSOM is unsuitable, because it fails to handle the more complex include/import scenario's.

          Show
          arjen.poutsma Arjen Poutsma added a comment - Additionally, XSOM is unsuitable, because it fails to handle the more complex include/import scenario's.
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          Closing issues for 1.5.

          Show
          arjen.poutsma Arjen Poutsma added a comment - Closing issues for 1.5.

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              anthavio Martin Vanek
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: