I need to create a async webservice using cxf with java first approach. But i am unable to
find any web resource/ website which tells me how to do this?
Can you please tell how can I write a async webservice using CXF with java first approach?
Thanks
Shekhar
解决方案
A simple alternative that can work in many situations:
Execute a normal web service from the client.
On the server, start the job in a new thread and return with a status like "job started"
When the job is finished, let the server send the result back to the client.
Advantages:
It's simple!
You get a quick result that tells if the job is accepted.
Disadvantages:
Both the client and server must listen for incomming web services.
Often requires an id handling to match the result with the original task.