Hi

You can register custom providers the same way you did register
ResponseReader.
When injecting clients from Spring you can use either jaxrs:client (proxies)
or use a WebClient constructor injection for creating web clients.
The extension mappings properties are not supported on the client side.

Please see

http://cxf.apache.org/docs/jax-rs-client-api.html#JAX-RSClientAPI-Injectingproxies
(add jaxrs:providers if needed)

and

http://cxf.apache.org/docs/jax-rs-client-api.html#JAX-RSClientAPI-ConfiguringHTTPclientsinSpring

Cheers, Sergey

On Mon, Jan 24, 2011 at 11:08 PM, Dan King <[email protected]> wrote:

> Hi,
>
> I'm aware that I can change the default jettison json provider to jackson
> by
> adding the below xml, but what configurations, if any, must I change on the
> client side? I'm using cxf-bundle-minimal-2.3.2
>
>    <jaxrs:providers>
>           <bean class="org.codehaus.jackson.jaxrs.JacksonJsonProvider">
>            <property name="mapper">
>             <bean
>                class="com.rest.json.ObjectMapperFactoryBean">
>            </bean>
>            </property>
>           </bean>
>    </jaxrs:providers>
>    <jaxrs:extensionMappings>
>        <entry key="json" value="application/json" />
>        <entry key="xml" value="application/xml" />
>    </jaxrs:extensionMappings>
>
> Are there any major pitfalls I should be wary of when deciding to make a
> change
> to either jackson or gson? Thanks.
>
> -Dan
>
>
>
>
>

Reply via email to