Ok, sure, that can be fixed.

In meantime, the simplest workaround is to copy and paste the existing JSONProvider, update it to pass the correct properties to the constructor, or possibly have the factory bean injected through spring, and then register the custom provider through jaxrs:providers, and it will be checked first...

JAX-RS ContextResolvers will also be supported soon.

Cheers, Sergey



On Jun 18, 2008, at 11:35 AM, Sergey Beryozkin wrote:
Just would like to clarify :

Do you expect that the bean with id 'jsonOutputFactory' is to be used as a org.codehaus.jettison.mapped.MappedXMLOutputFactory instance ?

At the moment, no jaxrs:properties are checked. But that can be  fixed...

Cheers, Sergey


Yes.. I want my service to do JSON, but it doesn't work unless I can configure jettison first with the namespace prefixes I need, and I can't figure out how to inject that map via Spring anywhere.

I see a couple examples on the web how to do it programatically, but  not how 
to do it in my spring container.

--Joe

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Reply via email to