Github user brunobat commented on a diff in the pull request:

    https://github.com/apache/tomee/pull/223#discussion_r237940616
  
    --- Diff: examples/concurrency-utils/pom.xml ---
    @@ -0,0 +1,68 @@
    +<?xml version="1.0" encoding="UTF-8"?>
    +<project xmlns="http://maven.apache.org/POM/4.0.0";
    +         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    +         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
    +
    +    <modelVersion>4.0.0</modelVersion>
    +
    +    <groupId>org.superbiz</groupId>
    +    <artifactId>concurrency-utils</artifactId>
    --- End diff --
    
    It's related to the JEE concurrency utilities. A complement to the SE 
version that you mention. See: 
https://docs.oracle.com/javaee/7/tutorial/concurrency-utilities002.htm#CIHFBCFH
    
    They provide managed executors for runnable, etc. They were created to 
address the fact that you should not start your own threads inside a container. 
These utilities basically manage the threads lifecycle for you. 
    And yes, they use Future. I'm using CompletableFutures, which itself 
implements Future because it's more powerful and less known. This way we get a 
double advantage with the example. 
    
    I'll probably take some time to explain all this and provide more context 
in the Readme. 


---

Reply via email to