4 Replies Latest reply: Jul 8, 2009 8:33 AM by Jesper Pedersen RSS

    JBXB-206: Performance work

    Jesper Pedersen Master

      To follow up on the JIRA - the code as it stands currently is:

       UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance();
       Unmarshaller unmarshaller = unmarshallerFactory.newUnmarshaller();
      
       MutableSchemaResolver resolver = SingletonSchemaResolverFactory.getInstance().getSchemaBindingResolver();
       resolver.mapLocationToClass("http://java.sun.com/xml/ns/j2ee/connector_1_6.xsd", JCA16MetaData.class);
       resolver.mapLocationToClass("http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd", JCA15MetaData.class);
       resolver.mapLocationToClass("connector_1_5.dtd", JCA15DTDMetaData.class);
       resolver.mapLocationToClass("connector_1_6.dtd", JCA16DTDMetaData.class);
       resolver.mapLocationToClass("connector", JCA16DefaultNSMetaData.class);
      


      using the JBXB and JBMETA classes.