About Blaise Doughan
Team lead for the TopLink/EclipseLink JAXB & SDO implementations, and the Oracle representative on those specifications.
List/Grid Author Archives Subscribe to the RSS feed of Blaise Doughan

MOXy’s Object Graphs & Dynamic JAXB
JAXB (JSR-222) makes it easy for you to convert instances of your domain classes to/from XML. The EclipseLink MOXy implementation offers an extension called Dynamic JAXB where instead ...

Introducing EclipseLink JPA-RS
In a previous series of posts I covered how to create a JAX-RS service that leveraged JPA for the persistence layer. EclipseLink contains a component called JPA-RS that can be used ...

Java API for JSON Processing (JSR-353) – Stream APIs
Java will soon have a standard set of APIs for processing JSON as part of Java EE 7. This standard is being defined as JSR 353 – Java API for JSON Processing (JSON-P) and it is ...

MOXy’s Object Graphs – Input/Output Partial Models to XML & JSON
Suppose you have a domain model that you want to expose as a RESTful service. The problem is you only want to input/output part of your data. Previously you would have created a separate ...

Binding to JSON & XML – Handling Collections
One of EclipseLink JAXB (MOXy)‘s strengths is the ability to map an object model to both JSON and XML with a single set of metadata. The one weakness had been that you needed ...

JAXB and java.util.Map
Is it ironic that it can be difficult to map the java.util.Map class in JAXB (JSR-222)? In this post I will cover some items that will make it much easier. Java Model Below is the Java ...

Leveraging MOXy in your Web Service via JAX-WS Provider
In previous articles I demonstrated how EclipseLink JAXB (MOXy) is directly integrated into the JAX-WS implementations in WebLogic (as of 12.1.1) and in GlassFish (as of 3.1.2). In ...

JAXB – Representing Null and Empty Collections
Demo Code The following demo code will be used for all the different versions of the Java model. It simply sets one collection to null, the second to an empty list, and the third to ...

Applying a Namespace During JAXB Unmarshal
For some an XML schema is a strict set of rules for how the XML document must be structured. But for others it is a general guideline to indicate what the XML should look like. This ...

JAXB and Root Elements
@XmlRootElement is an annotation that people are used to using with JAXB (JSR-222). It’s purpose is to uniquely associate a root element with a class. Since ...






