tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TOMEE-2301) Concurrency utilities example
Date Fri, 30 Nov 2018 17:30:00 GMT

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

ASF GitHub Bot commented on TOMEE-2301:
---------------------------------------

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.



> Concurrency utilities example
> -----------------------------
>
>                 Key: TOMEE-2301
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2301
>             Project: TomEE
>          Issue Type: Improvement
>          Components: Examples and Documentation
>    Affects Versions: 8.0.0-Final
>            Reporter: Bruno Baptista
>            Priority: Major
>              Labels: concurrency, examples, pull-request-available
>
> This is an example to demontrate the Concurrency Utilities introduced in JEE7:
> [https://docs.oracle.com/javaee/7/tutorial/concurrency-utilities.htm#top]
> It will use CompletableFutures.



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

Mime
View raw message