tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Luis Cetina <maxtorz...@gmail.com>
Subject Re: serializeAsArray JacksonJaxbJsonProvider
Date Sun, 19 Oct 2014 00:44:55 GMT
Im reading this topic:
http://tomee-openejb.979440.n4.nabble.com/Configuring-Apache-CXF-in-TomEE-td4660207.html

Then i created an resouces file but i dont see any changes in my arrays (of
length 1)

This is resources.xml under WEB-INF file with this content:

<resources>
    <Service id="json"
             class-name="org.apache.cxf.jaxrs.provider.json.JSONProvider">
             serializeAsArray = true
    </Service>
</resources>

And again this is my openejb-jar.xml
<openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.openejb.org/openejb-jar/1.1 ">
    <pojo-deployment class-name="jaxrs-application">
         <properties>
            cxf.jaxrs.providers =
com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider
        </properties>
    </pojo-deployment>
</openejb-jar>


What im doing wrong?


2014-10-18 19:09 GMT-05:00 José Luis Cetina <maxtorzito@gmail.com>:

> Hi, i need to set the serializeAsArray property to true, but where do i
> have to put it? in openejb-jar.xml?
>
>
>
> This is my openejb-jar.xml
>
> <openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
>              xsi:schemaLocation="http://www.openejb.org/openejb-jar/1.1 ">
>     <pojo-deployment class-name="jaxrs-application">
>          <properties>
>             cxf.jaxrs.providers =
> com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider
>         </properties>
>     </pojo-deployment>
> </openejb-jar>
>
> --
> -------------------------------------------------------------------
> *José Luis Cetina*
> -------------------------------------------------------------------
>



-- 
-------------------------------------------------------------------
*José Luis Cetina*
-------------------------------------------------------------------

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