Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CD179200D56 for ; Tue, 12 Dec 2017 15:42:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CB5D6160BFC; Tue, 12 Dec 2017 14:42:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1C326160BE7 for ; Tue, 12 Dec 2017 15:42:04 +0100 (CET) Received: (qmail 4164 invoked by uid 500); 12 Dec 2017 14:42:04 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 4154 invoked by uid 99); 12 Dec 2017 14:42:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Dec 2017 14:42:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CB382C4A4A for ; Tue, 12 Dec 2017 14:42:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.011 X-Spam-Level: X-Spam-Status: No, score=-100.011 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Y04pb8lXPeOX for ; Tue, 12 Dec 2017 14:42:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A93005F367 for ; Tue, 12 Dec 2017 14:42:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6109CE0F6E for ; Tue, 12 Dec 2017 14:42:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 45AB1212FF for ; Tue, 12 Dec 2017 14:42:00 +0000 (UTC) Date: Tue, 12 Dec 2017 14:42:00 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4874) Asynchronous action method MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 12 Dec 2017 14:42:06 -0000 [ https://issues.apache.org/jira/browse/WW-4874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16287695#comment-16287695 ] Lukasz Lenart commented on WW-4874: ----------------------------------- I would wait till 2.6 - this change can impact users. I have created 2.5.15 just to cover the latest discovered issues but it should be a small release (in case of number of fixed issues). We can work on both releases the same time - we can create a branch off of the latest 2.5.14.1 tag. > 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 > Labels: action, asynchronous > Fix For: 2.5.x > > Original Estimate: 1,344h > Remaining Estimate: 1,344h > > User will be able to return {{java.util.concurrent.Callable}} 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 (v6.4.14#64029)