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 <maxtorz...@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*
-------------------------------------------------------------------

Reply via email to