Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] [MOXy] caching

Hi Magnus,

The optimization of using StAX as part of unmarshalling InputStreams is part of EclipseLink 2.1 (a nightly snapshot can be obtained here http://www.eclipse.org/eclipselink/downloads/nightly.php).  To verify that StAX is being used to unmarshal the InputStream when the JAXBUnmarshaller.unmarshal(InputStream) method is called, it will in turn call the JAXBUnmarshaller.unmarshal(XMLStreamReader) method.

-Blaise

Magnus Heino wrote:
  • For unmarshalling of Streams it is actually faster to use our JAXB implementation of Unmarshaller rather than the native XMLUnmarshaller as the JAXB implementation uses StAX to perform the XML processing.  The native XMLUnmarshaller uses SAX to avoid forcing a runtime dependency on the StAX library.

Any suggestion of how I can assert that StAX is being used? Breakpoint, log, ...?

-- 

 /Magnus Heino

_______________________________________________ eclipselink-users mailing list eclipselink-users@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-users

Back to the top