Main Page

Previous Section Next Section

When to Use JAXB

In Chapter 9, we hypothesized that developers would rarely deal with XML constructs directly in their application code when developing Web services, as a result of other JAX APIs. In Chapters 10 , 11, and 12, we looked how different APIs (such as JAX-RPC, JAXM, and JAXR, respectively) provide some of this abstraction. JAXB is intended to be used in cases where XML must be handled directly in application code. Some of the scenarios where JAXB would be appropriate typically involve applications that:

The preceding is meant to be only an illustration of scenarios where JAXB may be appropriate and is not an exhaustive list.

Previous Section Next Section

JavaScript Editor Java Tutorials Free JavaScript Editor