views:

47

answers:

1

I need to choose a framework for XML persistency of some java classes in our application. My requirements are: 1. I start from java classes, not from schema 2. Using annotations for customization 3. Ability to generate schema.

Until now only JAXB seems to satosty all my requirements.

XStream does not generate schema JiXB dows not use java annotations.

Can you point me to some framework other than JAXB which satisfies all my requirements?

Thank you!

+1  A: 

Why not continue to use JAXB?

  1. It meets all of your requirements

  2. It is standard (included in Java SE 6, binding layer for JAX-WS & JAX-RS, multiple impls)

  3. There are multiple implementations, each with extensions (I lead the MOXy JAXB implementation).

Blaise Doughan
Thank you, I'll try to use MOXyBTW I have found another library - Moose - http://quigley.com/moose/developer-guide.html