Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Java EE Asynchronous Servlet processing in Web Flow action [SWF-1743] #918

Open
spring-operator opened this issue Aug 18, 2020 · 2 comments
Labels
status: waiting-for-triage We need additional information before we can continue

Comments

@spring-operator
Copy link
Contributor

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

@spring-operator
Copy link
Contributor Author

Doug Breaux commented

Any guidance on this, Rossen Stoyanchev or appropriate delegate?

@spring-operator
Copy link
Contributor Author

Rossen Stoyanchev commented

Doug Breaux my sense is that Web Flow would need to have built-in support in order to make use of async requests. There would need to be some way for an action to indicate a) that it is starting async processing, and b) to provide the result, like when using DeferredResult. I'll have a look to get a better idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage We need additional information before we can continue
Projects
None yet
Development

No branches or pull requests

1 participant