views:

157

answers:

1

Hello

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

+1  A: 

A simple alternative that can work in many situations:

  1. Execute a normal web service from the client.
  2. On the server, start the job in a new thread and return with a status like "job started"
  3. 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.
Espen