cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CXF-4747) Support easier configuration of Spring bus with WebClient
Date Thu, 18 Apr 2013 16:09:18 GMT


Sergey Beryozkin commented on CXF-4747:

"I think something like jaxrs:webclient or getting a webclient from jaxrs:client would solve
my 'issue'":


I'm not sure why I did not guess initially one could use jaxrs:client to create WebClient,
all the configuration of jaxrs:client will apply to WebClient, so the only thing that need
to be done is to set 'serviceClass' to org.apache.cxf.jaxrs.client.WebClient.

I think we've got it fixed, thanks.

Please also watch
The idea is that one declares jaxrs:client and then picks it up from the code, using JAXRSClientFactory
or, after this update, WebClient factory method 

> Support easier configuration of Spring bus with WebClient
> ---------------------------------------------------------
>                 Key: CXF-4747
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 2.7.1
>            Reporter: Mike Noordermeer
>            Priority: Minor
> The current {{WebClient.create()}} methods only support either using a fresh bus, or
creating a new bus from a Spring config file. It should be possible to reuse an existing Spring
bus, so you can for instance enter your {{<http:conduit>}} elements in your usual Spring
> The same issue was asked before on the [mailing list|],
but without an answer.
> I have found a workaround, but I don't find it too pretty:
> {code:xml}
>     <http:conduit name="*.http-conduit">
>         <http:client ConnectionTimeout="3000000" ReceiveTimeout="3000000" />
>         <http:tlsClientParameters>
>             <sec:keyManagers keyPassword="pass">
>                 <sec:keyStore resource="mykeystore.jks" password="pass" type="JKS"
>             </sec:keyManagers>
>         </http:tlsClientParameters>
>     </http:conduit>
>     <bean id="myWebClientFactory" class="org.apache.cxf.jaxrs.spring.JAXRSClientFactoryBeanDefinitionParser.JAXRSSpringClientFactoryBean">
>         <property name="address" value="${myurl}" />
>         <property name="providers">
>             <list>
>                 <bean class="org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider" />
>             </list>
>         </property>
>     </bean>
>     <bean id="myWebClient" factory-bean="myWebClientFactory" factory-method="createWebClient"
> {code}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message