You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "lukaszlenart (via GitHub)" <gi...@apache.org> on 2023/03/02 16:05:58 UTC

[GitHub] [struts-site] lukaszlenart opened a new pull request, #187: [WW-3691] Documents how to use ExecutorProvider

lukaszlenart opened a new pull request, #187:
URL: https://github.com/apache/struts-site/pull/187

   Refs [WW-3691](https://issues.apache.org/jira/browse/WW-3691)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


[GitHub] [struts-site] aleksandr-m merged pull request #187: [WW-3691] Documents how to use ExecutorProvider

Posted by "aleksandr-m (via GitHub)" <gi...@apache.org>.
aleksandr-m merged PR #187:
URL: https://github.com/apache/struts-site/pull/187


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


[GitHub] [struts-site] asf-ci commented on pull request #187: [WW-3691] Documents how to use ExecutorProvider

Posted by "asf-ci (via GitHub)" <gi...@apache.org>.
asf-ci commented on PR #187:
URL: https://github.com/apache/struts-site/pull/187#issuecomment-1455526289

   Staged site is ready at https://struts.staged.apache.org/


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@struts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [struts-site] aleksandr-m commented on a diff in pull request #187: [WW-3691] Documents how to use ExecutorProvider

Posted by "aleksandr-m (via GitHub)" <gi...@apache.org>.
aleksandr-m commented on code in PR #187:
URL: https://github.com/apache/struts-site/pull/187#discussion_r1123674590


##########
source/core-developers/execute-and-wait-interceptor.md:
##########
@@ -61,6 +65,21 @@ for obtaining and releasing resources that the background process will need to e
 background
 process extension, extend `ExecuteAndWaitInterceptor` and implement the `getNewBackgroundProcess()` method.
 
+## Using ExecutorProvider
+
+Since Struts 6.1.1 it is possible to use your own `ExecutorProvider` to run _background tasks_. To use your own executor
+you must implement interface `org.apache.struts2.interceptor.exec.ExecutorProvider` and install the bean using `struts.xml`
+like follows:
+
+```xml
+<bean type="org.apache.struts2.interceptor.exec.ExecutorProvider" 
+      class="com.company.MyExecutorProvider"/>
+```
+
+Please a take look into example implementation in the Showcase App.
+
+If now custom executor is defined, Struts will use `org.apache.struts2.interceptor.exec.StrutsExecutorProvider` by default.

Review Comment:
   now - no ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@struts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [struts-site] aleksandr-m commented on a diff in pull request #187: [WW-3691] Documents how to use ExecutorProvider

Posted by "aleksandr-m (via GitHub)" <gi...@apache.org>.
aleksandr-m commented on code in PR #187:
URL: https://github.com/apache/struts-site/pull/187#discussion_r1123676674


##########
source/core-developers/execute-and-wait-interceptor.md:
##########
@@ -61,6 +65,21 @@ for obtaining and releasing resources that the background process will need to e
 background
 process extension, extend `ExecuteAndWaitInterceptor` and implement the `getNewBackgroundProcess()` method.
 
+## Using ExecutorProvider
+
+Since Struts 6.1.1 it is possible to use your own `ExecutorProvider` to run _background tasks_. To use your own executor
+you must implement interface `org.apache.struts2.interceptor.exec.ExecutorProvider` and install the bean using `struts.xml`
+like follows:
+
+```xml
+<bean type="org.apache.struts2.interceptor.exec.ExecutorProvider" 
+      class="com.company.MyExecutorProvider"/>
+```
+
+Please a take look into example implementation in the Showcase App.

Review Comment:
   Please take a look



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@struts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org