cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Chaffee" <>
Subject RE: JAXB: Any way to incorporate restrictions into annotations?
Date Thu, 03 Mar 2011 00:13:20 GMT
This is exactly what we wanting, except it doesn't seem to support key restrictions...but it
does support other constraints.  However, I cannot add any jars to the endorsed directory
do to some operational constraints so it won't help me much, but it is still nice to know.


-----Original Message-----
From: on behalf of Jason Pell
Sent: Wed 3/2/2011 2:53 PM
Cc: Hannes Holtzhausen; Jason Chaffee; Daniel Kulp
Subject: Re: JAXB: Any way to incorporate restrictions into annotations?

I am using jaxb-facets with CXF and it works very nicely.

I did have to hack jaxb-api and jaxb-impl and put the hacked jaxb-api
into jre/lib/endorsed and override the
impl in CXF, but it works so well I was surprised.  I have since added
Date and Datetime validation and at some
point will need to add Decimal as well.

If you want to get hold of my updated jaxb-api and jaxb-impl let me
know.  I can provide my enhancements to the original code from

Its a real hack but it does exactly what I need and I have done it in
such a way that if at some point its built into jaxb I can back out my
and make use of the core release again.


On Wed, Mar 2, 2011 at 4:09 PM, Hannes Holtzhausen
<> wrote:
> Have a look at XMLBeans If you are looking for an XML binding
> technology that supports the
> full XSD spec but still provides a Java bean style API for accessing
> and generating the XML.
> This is also not a 100% code first approach, you need to start with an
> XSD to generate XMLBeans.
> But you can do a code first web service once you have generated the XMLBeans.
> Cheers
> Hannes

View raw message