[
https://issues.apache.org/jira/browse/CXF-7057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15540107#comment-15540107
]
Sergey Beryozkin edited comment on CXF-7057 at 10/2/16 9:48 AM:
----------------------------------------------------------------
In fact I reckon Dubbot proxy creation code should do what CXF code does -
included the custom interface plus Client + InvocationContextAware... Though if
we can find a way to get to the invocation handler through a custom interface
proxy only then it will be fine, but adding those 2 extra interfaces in Dubbot
will make things simpler.
was (Author: sergey_beryozkin):
In fact I reckon Dubbot proxy creation code should do what CXF code does -
included the custom interface plus Client + InvocationContextAware... Though if
we can find a way to get to the invocation handler through a custom interface
proxy only then it will be fine, but adding those 2 extra interface in Dubbot
will make things simpler.
> CXF JAXRSClientFactoryBean proxy async support
> ----------------------------------------------
>
> Key: CXF-7057
> URL: https://issues.apache.org/jira/browse/CXF-7057
> Project: CXF
> Issue Type: Wish
> Components: JAX-RS
> Affects Versions: 3.1.7
> Environment: Linux Mac
> Reporter: Neal Hu
> Fix For: 3.1.8
>
>
> Say we have resource interface org.apache.cxf.Resource, and its impl
> org.apache.cxf.ResourceImpl, we can create client proxy via
> JAXRSClientFactoryBean as below;
> {code:java}
> Class<T> type = org.apache.cxf.Resource.class;
> JAXRSClientFactoryBean bean = new JAXRSClientFactoryBean();
> bean.setAddress(baseAddress);
> bean.setServiceClass(type);
> bean.setProviders(providers);
> bean.setFeatures(features);
> bean.setThreadSafe(true);
> T proxy = bean.create(type);
> {code}
> Then invoke the method via proxy.method1.
> As we know the spec client api can invoke via async mode, my question is if
> the dynamic proxy mode support async mode.
> We are developing micro service framework which based on CXF RS, and the
> comsumer's invoker is dynamicly generated by the clientfactory.create. Thanks.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)