Java 8 in a JEE Environment (original) (raw)
Paul Benedict pbenedict at apache.org
Tue Apr 16 07:51:23 PDT 2013
- Previous message: Java 8 in a JEE Environment
- Next message: Java 8 in a JEE Environment
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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: *
The common pool is by default constructed with default
* parameters, but these may be controlled by setting three * {@linkplain System#getProperty system properties}: **
{@code java.util.concurrent.**ForkJoinPool.common.**parallelism} * - the parallelism level, a non-negative integer *{@code java.util.concurrent.**ForkJoinPool.common.**threadFactory} * - the class name of a {@link ForkJoinWorkerThreadFactory} *{@code java.util.concurrent.ForkJoinPool.common. exceptionHandler} * - the class name of a {@link UncaughtExceptionHandler} * Containers can control the pool size, thread factory, and exception handler for the common pool, which is used by parallel stream implementations.
- Previous message: Java 8 in a JEE Environment
- Next message: Java 8 in a JEE Environment
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]