Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CXF offers Continuations API to manage asynchronous (suspended) invocations.

ContinuationProvider represents a transport capable of suspending and resuming the invocations on request.

CXF offers Servlet3 and legacy Jetty Continuations HTTP as well as JMS ContinuationProvider implementations.
ContinuationProvider can be used to get Continuation which represents a current active or suspended invocation.

...

Calling Continuation.suspend() and returning from the current method/code is enough to get CXF suspending the request. Additionally throwing SuspendedInvocationException was required originally but is no longer required/recommended.

...

Advanced applications can register ContinuationCallback with the current exchange in order to get the notifications that a given Continuation has completed its work by returning the data to the client.

...