tomee-commits mailing list archives

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


ASF GitHub Bot commented on TOMEE-2301:

Github user brunobat commented on a diff in the pull request:
    --- Diff: examples/concurrency-utils/pom.xml ---
    @@ -0,0 +1,68 @@
    +<?xml version="1.0" encoding="UTF-8"?>
    +<project xmlns=""
    +         xmlns:xsi=""
    +         xsi:schemaLocation="">
    +    <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:
    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:
>             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:
> []
> It will use CompletableFutures.

This message was sent by Atlassian JIRA

View raw message