cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sbery...@progress.com>
Subject Re: JAXB and JAX-RS under CXF
Date Wed, 20 Jan 2010 17:20:55 GMT
Hi

It is possible. It has to work, you do not even has to enable it for JAXRS; for DOSGI-RI/JAX-RS
it is a default databinding given 
that the JAXRS spec requires the JAXB support OTB so I thought asking users to explictly add
org.apache.cxf.rs.databinding=jaxb just 
to enable JAXB would be too much...
Are you seeing any issues ? I'm thinking may be I've just done another piece of the documentation
which is confusing ? One thing I'm 
saying there is that if you do not want to have your bundle modified for JAXB be supported
at runtime as well as to explicitly 
annotate beans with @XmlRootElement and friends (that is, to import JAXB packages) then if
it is JAX-RS only you can register a 
custom (CXF JAXRS) JAXBElementProvider and tell it to use JAXBElement internally and that
is it...

cheers, Sergey

----- Original Message ----- 
From: "Daniel Bimschas" <bimschas@itm.uni-luebeck.de>
To: <dev@cxf.apache.org>
Sent: Wednesday, January 20, 2010 5:07 PM
Subject: JAXB and JAX-RS under CXF


Hi list,

following the DOSGi reference [1] I see that it's not possible to use JAXB under JAX-RS but
with JAX-WS. Is that correct? And what 
is the reason for it?

Kind regards,
Daniel

[1] http://cxf.apache.org/distributed-osgi-reference.html 


Mime
View raw message