List/Grid Tag Archives: JAXB

EclipseLink MOXy as a JAXB provider
EclipseLink MOXy is a JAXB provider and is a compelling alternative to the default JAXB provider built into JDK. First a simple test to marshal a Java object to XML: This is the model: @XmlRootElement(name='MemberDetailsRequest', ...

Approaches to XML – Part 3 – JAXB
If you remember from Part 1 and Part 2, I’m covering different approaches to parsing XML messages using the outrageously corny scenario of Pete’s Perfect ...

JAXB Custom Binding – Java.util.Date / Spring 3 Serialization
JaxB can handle Java.util.Date serialization, but it expects the following format: “yyyy-MM-ddTHH:mm:ss“. What if you need to format the date object in another format? I had the ...

XML unmarshalling benchmark: JAXB vs STax vs Woodstox
Introduction Towards the end of last week I started thinking how to deal with large amounts of XML data in a resource-friendly way.The main problem that I wanted to solve was how ...

GlassFish 3.1.2 is Full of MOXy (EclipseLink JAXB)
I am very happy to announce that EclipseLink JAXB (MOXy) is now a JAXB ( JSR-222) provider in GlassFish 3.1.2. I would like to thank the EclipseLink and GlassFish committers for ...

JAXB and Unmapped Properties
JAXB (JSR-222) is configuration by exception, meaning that there is a default mapping applied to domain objects. This means that sometimes you need to explicitly exclude a field/property. ...

Implementing Active Record Pattern with Spring AOP
During class design we should take decisions about the assignment of responsibilities that will have every class. If we have chosen well, systems tend to be easier to understand, maintain ...

Make your JAXB cleaner with the MOXy implementation
The principle advantage of using JAXB when marshalling and demarshalling XML is the programming model. Simply annotate a few POJOs and use the JAXB API’s and you can serialise ...

JAXB, SAX, DOM Performance
This post investigates the performance of unmarshalling an XML document to Java objects using a number of different approaches. The XML document is very simple. It contains a collection ...

Develop Restful web services using Spring MVC
REST INTRODUCTIONFrom Wikipedia: REST-style architectures consist of clients and servers. Clients initiate requests to servers; servers process requests and return appropriate responses. ...

