tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Configuring Apache CXF in TomEE
Date Wed, 09 Jan 2013 15:11:28 GMT
jaxrs-application is for tomee >= 1.5.2 (to be released)

you can do:

<!-- in openejb-jar.xml -->
<pojo-deployment class-name="com.foo.MyRestService">
  <properties>
      cxf.jaxrs.providers = json
  </properties>
</pojo-deployment>

<!-- in resources.xml -->
<Resource id="json"
class-name="org.apache.cxf.jaxrs.provider.json.JSONProvider">
    dropRootElement = true
    # etc...
</Resource>

supportUnwrapped=true,dropRootElement=true


2013/1/9 <dmitry.volkov@eiskonzept.com>

> <pojo-deployment class-name="jaxrs-application">
>   <properties>
>       cxf.jaxrs.properties = supportUnwrapped=true,dropRootElement=true
>   </properties>
> </pojo-deployment>
>



*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message