Hi,
I can see AsyncResponse.resume throws IllegalStateException if the
invocation has not been suspended.
IMHO it is too much of a restriction, possibly an implementation
specific one.
IMHO, the following should work
@GET
void getIt(AsyncResponse response) {
response.resume(myObject);
}
if 'myObject' happens to be available immediately.
The runtime has to suspend only after "getIt" returns, but only if no
response object is already available.
Thoughts ?
Sergey