Monday 19 January 2015

Introduction to JAXB and its Architecture

JAXB means JAVA API for XML Binding.

Introduction to JAXB and its Architecture In simple words, it means an API used to bind XML with JAVA objects.

JAXB provides an efficient and easy way to bind XML data to JAVA which is very helpful for java developer ,Mostly used in case of web services as data travel between web services and client in form of xml which is further needed to be converted into java object as a need for java application.This need can be fulfilled by JAXB.

Mainly two things can be understood as working of JAXB.
 1.       Conversion of java objects to XML which is known as Marshalling.
 2.       Conversion  of XML data to java object ,known as unmarshalling.



JAXB Architecture:



JAXB Architecture


JAXB Architecture consists of following components:

Schema Compiler
Schema Generator
Binding Runtime Framework

Schema Compiler is used to bind source schema with schema derived program elements.

Schema Generator maps set of Program elements to derived schema .This mapping is described by annotations.

Binding Runtime Environment : Provides unmarshalling (reading) and marshalling (writing) operations for accessing, manipulating, and validating XML content using either schema-derived or existing program elements.

No comments:

Post a Comment