Java 8 in a JEE Environment

Paul Benedict pbenedict at apache.org
Tue Apr 16 07:51:23 PDT 2013


Thanks Brian. In regard to Michael's comment, are these the properties
which the EG decided on for EE containers? I would like to know if F/J and
Stream can be used directly in an EE container without circumventing any
managed services.

Paul


On Tue, Apr 16, 2013 at 9:46 AM, Brian Goetz <brian.goetz at oracle.com> wrote:

> Paul, what are your thoughts of creating an SPI that allow implementations
>> to hook into F/J? I am thinking that the SE API could be used if an EE
>> container had a way of participating in the API to create threads.
>>
>
> That's already there.
>
> From ForkJoinPool doc:
>
>  * <p>The common pool is by default constructed with default
>  * parameters, but these may be controlled by setting three
>  * {@linkplain System#getProperty system properties}:
>  * <ul>
>  * <li>{@code java.util.concurrent.**ForkJoinPool.common.**parallelism}
>  * - the parallelism level, a non-negative integer
>  * <li>{@code java.util.concurrent.**ForkJoinPool.common.**threadFactory}
>  * - the class name of a {@link ForkJoinWorkerThreadFactory}
>  * <li>{@code java.util.concurrent.**ForkJoinPool.common.**
> exceptionHandler}
>  * - the class name of a {@link UncaughtExceptionHandler}
>  * </ul>
>
> Containers can control the pool size, thread factory, and exception
> handler for the common pool, which is used by parallel stream
> implementations.
>
>
>


More information about the lambda-dev mailing list