-
Notifications
You must be signed in to change notification settings - Fork 236
Description
Doug Breaux opened SWF-1743 and commented
Is there any way to make use of Java EE Asynchronous Web Servlet processing in Spring Web Flow? I see a fair amount about Spring MVC support, but nothing about Web Flow. Where ideally I'd want only certain transitions or actions to use the approach.
Would you have to use the DeferredResult
approach? Although that seems to be intended for doing the work somewhere unaware of the web container context, which Web Flow isn't.
I can get the native HttpServletRequest
, of course, and from there call:
AsyncContext acontext = startAsync();
But since Web Flow isn't dealing with low level HTTP request/response objects, I don't know how I'd tie the two together.
I'd love to see a working example. I'm hoping I don't have to exit Web Flow in order to do the Asynchronous request processing.
Reference URL: https://stackoverflow.com/questions/56605716/asynchronous-servlet-processing-in-spring-web-flow