On 14/01/14 15:34, rpd wrote:
Thanks - useful to know and it would indeed be a handy feature to be able to do this. By
"writing my own application" do you mean that I would follow...
http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-ConfiguringJAX-RSservicesprogrammatically
using specifically the JAXRSServerFactoryBean? Would this be outside of my
web-container (Tomcat)?
No, you create your own custom JAX-RS Application and register it with
CXFJaxrsNonSpringServlet using the parameter name as required by the
spec, "javax.ws.rs.Application",
Cheers, Sergey
Rob
________________________________
From: Sergey Beryozkin [via CXF] <ml-node+s547215n5738535...@n5.nabble.com>
To: rpd <robpodol...@yahoo.co.uk>
Sent: Tuesday, 14 January 2014, 12:12
Subject: Re: NON-SPRING JSON array serialization workaround please??
Hi
On 14/01/14 11:34, rpd wrote:
________________________________
No, the above would set the endpoint properties, JSONProvider does not
check them, one can do it like this:
<init-param>
<param-name>jaxrs.providers</param-name>
<param-value>
org.apache.cxf.systest.jaxrs.BookStoreProvider1
org.apache.cxf.systest.jaxrs.BookStoreProvider2(a=b c=d)
</param-value>
</init-param>
In this case though it won't help actually, it is only possible to
inject simple non-collection properties and the arrayKeys JSONProvider
property is a list. I can see it can be supported easily enough too, but
not at the moment.
The only way then for now is to register a custom JAX-RS Application
when you can directly configure the provider
Cheers, Sergey
________________________________
________________________________
If you reply to this email, your message will be added to the discussion below:
http://cxf.547215.n5.nabble.com/NON-SPRING-JSON-array-serialization-workaround-please-tp5738442p5738535.html
To unsubscribe from NON-SPRING JSON array serialization workaround please??,
click here.
NAML
--
View this message in context:
http://cxf.547215.n5.nabble.com/NON-SPRING-JSON-array-serialization-workaround-please-tp5738442p5738547.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com