Is it discouraged using Java 8 parallel streams inside a Java EE container?
问题 Given that spawning threads in Java EE containers are discouraged. Would using the Java 8 parallel streams, which may spawn threads, inside Java EE be discouraged too? 回答1: EDIT See alternate answer from andrepnh . The below may have been the plan, but it doesn't appear to have played out that way in practice. The way I read it from the lambda-dev mailing list discussion mentioned in the comments: it's not discouraged the way spawning threads is - but won't do anything much for you in a Java