JAXB 2.0 and FastInfoset
Web Services are verbose, and I have been tasked to examine what can be gained from various performance enhancing technologies, in order for the services to operate on disadvantaged grids. Eventually selected technologies will be included in a demonstrator.
Our present demonstrator has Web Services buildt around it, but with JAXB 2, the core system could use the generated types and WS could be more directly integrated with the core. I am very pleased with JAXB 2 so far.
In order to examine the size of XML dokuments, and compare them with documents generated by Fast Infoset, I have generated my report classes from a xsd schema describing a report that will eventually be sent by WS. So far I have written a small test program that generates a report object and serializes it to an XML document by:
Report = new Report(.......);
JAXBContext jc = JAXBContext.newInstance("....");
StringWriter sw = new StringWriter();
Marshaller ma = jc.createMarshaller(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
m.marshal( report, sw);
The size of the XML report is 872 bytes. I want to examine the effectiveness of Fast Infoset when sending 1, 4 and 8 reports in one message.
JAXBB 2.0 is said to have native support for FastInfoset, and my question is how do I invoke it?