1 2 Previous Next 15 Replies Latest reply on Aug 29, 2011 2:45 PM by kcbabo Go to original post
      • 15. Re: XML Validation in Eclipse
        kcbabo

        I've run into issues in a prior life with attempting to resolve this from a runtime management API.  The issue there is that the server must be up when you query for the schema.  If we point at a SwitchYard runtime location which has a directory path like etc/schema/*.xsd, then I'm hoping we can just use the runtime location + a relative path to resolve the schema.  This also works for a class loader based approach to loading the schema, as you just add the runtime etc/ directory to the classpath and resolve the paths from there.

         

        Rob Cernich wrote:

         

        Keith has suggested the Eclipse plugin should resolve schema through a project's associated SwitchYard runtime.  This would allow SwitchYard projects to reference different versions of schema, based on the version of the runtime the project is associated with.  I've created a JIRA for this: https://issues.jboss.org/browse/SWITCHYARD-433

         

        I can see how we could easily resolve the correct versions of schema, but I think it would be good if we could, somehow, automatically determine which schema are supported by the runtime.  I'm guessing we could use the current Descriptor functionality to resolve the defined schema along with their locations.  That said, I'm not sure of the best way to access that information (e.g. a management operation that provides a map <namespace, schema location>, a custom classloader, ???).

         

        Thoughts?

        1 2 Previous Next