I changed to:
<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>
resources.xml
<resources>
<Service id="json"
class-name="com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider">
serializeAsArray = true
</Service>
</resources>
and didnt work, what is the value of id in service tag? is json correct? do
i have to set the same class name in both files?? i really dont understand
this config.
2014-10-19 2:24 GMT-05:00 Romain Manni-Bucau <[email protected]>:
> If you have a custom jaxrs application class-name should be its name.
>
> And once you use resources, providers values should be their ids (json
> here) in openejb-jar.
> Hi,
> I usually add my own @provider / "extends JacksonJaxbJsonProvider")
>
> and set all my needed objectmapper options there.
>
> br hw
>
>
>
> --
> View this message in context:
>
> http://tomee-openejb.979440.n4.nabble.com/serializeAsArray-JacksonJaxbJsonProvider-tp4672427p4672431.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
--
-------------------------------------------------------------------
*José Luis Cetina*
-------------------------------------------------------------------