cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@gmail.com>
Subject Re: Asynchronous
Date Mon, 12 Nov 2012 01:34:47 GMT
Hi,

FYI, for the jaxws server side asynchronous, since CXF 2.6.x, you can use @UseAsyncMethod
which will leverage CXF Continuations API underlying,  take a look at jaxws_async sample(especially
the README.txt which explain the Server Side Asynchronous models) shipped with CXF 2.6.x kit
to get more details.

Freeman
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-11-11, at 下午8:38, Gege wrote:

> Hi,
> 
> I'm using CXF between two endpoints (both are AS) in SOAP and/or REST over
> HTTP.
> 
> I want network callflows to be as simple as possible (no callbacks, plain
> simple request/answer) and i want to be resources-efficient because some
> requests might be long (and i'll have long-polling for events).
> 
> So, I need to have asynchronous implementations (in java) of both client
> and servers.
> 
> Here is where i stand:
> 
> SOAP (jax-ws) :
> - asynchronous client : OK (wsimport + binding.xml)
> - asynchronous server : not supported yet by CXF (AsyncProvider is
> specified in jax-ws 2.2, it's not the most simple to implement (handle the
> XML myself...) but it should be able to do the job, might be supported in
> jax-ws-ri by sun).
> 
> REST (jax-rs) :
> - asynchronous client (cxf-wadl2java) : ? i did find anything about
> asynchronous client and I really hope someone can give me a pointer
> - asynchronous server : OK using AsyncResponse (jax-rs 2.0) and some fixes
> that i'll post once i've tested a bit more
> 
> For now, I feel like there are some pieces missing.
> Of course i could implement a REST client myself, but i feel it's a waste.
> There are libraries and utilities everywhere and what I want to do seems
> pretty much in the scope of jax-rs and jax-ws).
> 
> Thanks in advance.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message