struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4874) Asynchronous action method
Date Tue, 20 Mar 2018 14:44:00 GMT

    [ https://issues.apache.org/jira/browse/WW-4874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16406423#comment-16406423
] 

Hudson commented on WW-4874:
----------------------------

SUCCESS: Integrated in Jenkins build Struts-master-JDK7 #114 (See [https://builds.apache.org/job/Struts-master-JDK7/114/])
WW-4874 Introduces Servlet3 plugin by adding support for async action (yasser.zamani: rev
1c0976a8693519f03b3796215bb9140a3c3160fc)
* (edit) plugins/pom.xml
* (add) plugins/servlet3/src/main/java/org/apache/struts2/servlet3/async/AsyncAction.java
* (edit) core/src/main/java/org/apache/struts2/dispatcher/PrepareOperations.java
* (add) core/src/main/java/com/opensymphony/xwork2/AsyncManager.java
* (add) plugins/servlet3/src/main/java/org/apache/struts2/servlet3/async/Servlet3AsyncManager.java
* (edit) core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
* (add) plugins/servlet3/pom.xml
* (edit) core/src/main/java/com/opensymphony/xwork2/DefaultActionInvocation.java
* (add) plugins/servlet3/src/main/resources/struts-plugin.xml
WW-4874 Refactors technology name, servlet3, to asset name, async (yasser.zamani: rev eaed709f1d314f02b3318667c434e5addc922154)
* (edit) plugins/pom.xml
* (add) plugins/async/src/main/java/org/apache/struts2/async/AsyncAction.java
* (add) plugins/async/src/main/java/org/apache/struts2/async/DefaultAsyncManager.java
* (add) plugins/async/src/main/resources/struts-plugin.xml
* (add) plugins/async/pom.xml
* (delete) plugins/servlet3/src/main/java/org/apache/struts2/servlet3/async/AsyncAction.java
* (delete) plugins/servlet3/pom.xml
* (delete) plugins/servlet3/src/main/java/org/apache/struts2/servlet3/async/Servlet3AsyncManager.java
* (delete) plugins/servlet3/src/main/resources/struts-plugin.xml
WW-4874 Adds unit tests (yasser.zamani: rev 4ac287abd7da73273b162b2dc203c3636e9cb44f)
* (add) plugins/async/src/test/java/org/apache/struts2/async/DefaultAsyncManagerTest.java
* (edit) core/src/test/java/org/apache/struts2/dispatcher/DispatcherTest.java
* (edit) plugins/async/pom.xml
* (edit) core/src/test/java/com/opensymphony/xwork2/DefaultActionInvocationTest.java
* (add) core/src/test/java/org/apache/struts2/dispatcher/PrepareOperationsTest.java
WW-4874 Updates parent version (yasser.zamani: rev e65d77bae1757b7306bfac8deb38704335d43779)
* (edit) plugins/async/src/main/java/org/apache/struts2/async/DefaultAsyncManager.java
* (edit) core/src/main/java/com/opensymphony/xwork2/AsyncManager.java
* (edit) plugins/async/src/main/java/org/apache/struts2/async/AsyncAction.java
* (edit) plugins/async/pom.xml
WW-4874 Renames local variable inv to invocation (yasserzamani: rev fb8f139b069dd32ccecf9abe6b4c110a666ca860)
* (edit) core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java


> Asynchronous action method
> --------------------------
>
>                 Key: WW-4874
>                 URL: https://issues.apache.org/jira/browse/WW-4874
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Core Actions, Dispatch Filter
>            Reporter: Yasser Zamani
>            Priority: Major
>              Labels: action, asynchronous
>             Fix For: 2.6
>
>   Original Estimate: 1,344h
>  Remaining Estimate: 1,344h
>
> User will be able to return {{java.util.concurrent.Callable<String>}} in their
actions. Struts when sees such result, runs {{resultCode = result.call();}} in it's own managed
thread pool but exits from servlet's main thread with a null result, i.e. gives back main
thread to container and leaves response open for concurrent processing. When {{resultCode
= result.call();}} returned, Struts calls {{javax.servlet.AsyncContext.dispatch()}} and {{resumes
request processing}} within a container's thread servlet to generate the appropriate result
for user according to {{resultCode}}.
> This adds better support for SLS (Short request processing, Long action execution, Short
response processing) via Servlet 3's Async API.
> Support of other cases like SSL (e.g. a download server) or LLL(e.g. a video converter
server) is still open.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message