Technology Preview of JAXB RI 2.0 Early Access

The early access version of the JAXB RI 2.0 is now available. This document explains how you can try it.

Installation Instructions

  1. Download the binary and place this file in an empty directory.
  2. Execute the downloaded class file as: java -cp . wsisampleapp11

Test Schema->Java

  1. Pick your favorite schema, and run java -jar jaxb-xjc.jar abc.xsd
  2. Compile the generated code with your application code. You need jaxb-api.jar, jsr173_api.jar, and jaxb-impl.jar in your classpath to do so.
  3. Run your application. You need the same 3 jars to run your application.

Test Java->Schema

Until we write more documentations, you'll have to learn this by example. First, try compiling several schemas and see the generated code. You'll notice that there are several annotations that are very commonly used (such as XmlElement, XmlAttribute, and XmlRootElement. Try imitating the use of annotations on your class.

To create a JAXBContext from your annotated class, do JAXBContext.newInstance(MyClass1.class,MyClass2,...). You only need to list classes that are mapped to the root element.

More documents coming soon...

Ask Questions and Tell Us How You Think

Please subscribe to users@jaxb.dev.java.net from here, and send us your comments/questions/bugs/feedbacks. We are listening!

$Id: ri20-ea.html,v 1.1 2005-02-10 23:29:12 ryan_shoemaker Exp $
Terms of Use; Privacy Policy; Copyright ©2013-2014 (revision 20140418.2d69abc)
 
 
Close
loading
Please Confirm
Close