This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes JAXB or Mapping XML to Java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "JAXB or Mapping XML to Java?" Watch "JAXB or Mapping XML to Java?" New topic

JAXB or Mapping XML to Java?

Ely Yang

Joined: Oct 27, 2003
Posts: 7
Is anyone can clearly answer what is 'binding' and what is 'mapping' here. in Richard Monson-Haefel 's book no any touch about JAXB, instead of mapping xml schma to Java, it seems a same topic with the JAXB in Java web Service Tutoral and the testing objectives. marshal/unmarshal concepts seems very important, but no any metioned in Richard' book.
Ely :roll:

Ely Yang
Dushy Inguva
Ranch Hand

Joined: Jun 24, 2003
Posts: 264
In this context, I think of "binding" as the "runtime execution" of "mapping". The runtime process by which the provider populates data from xml -> java and other way around.
example: Which attribute in xml has to be mapped to which property in java is specified by mapping.
How it is performed at runtime (by using pre-compiled mapping classes or reflection) is performed by binding.
Any thoughts guys?

Arghya Banerjee

Joined: May 05, 2004
Posts: 13
Binding generate JAXB classes using JAXB binding compiler. I am not sure about JAXB mapping
Ely Yang

Joined: Oct 27, 2003
Posts: 7
Thanks, Dushy.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: JAXB or Mapping XML to Java?
It's not a secret anymore!