Why do you depend on the context classloader inside that?
Op 1 dec. 2017 04:41 schreef "Xueheng Wu" :
> Johan, thanks a lot.
>
> This way could be a huge project, because parallelStream is used
> everywhere.
> Maybe we got wrong usage from the beginning.
>
>
> > On 30 Nov 2017, at 19:23, Johan Co
Johan, thanks a lot.
This way could be a huge project, because parallelStream is used everywhere.
Maybe we got wrong usage from the beginning.
> On 30 Nov 2017, at 19:23, Johan Compagner wrote:
>
> I think tomcat has nothing todo with this.
>
> This is the Threadpool that parallelStream() use
I think tomcat has nothing todo with this.
This is the Threadpool that parallelStream() uses. So this is a problem of
the streaming api of java
The threadpool needs to set the context classloader on its created threads..
So you need to use i think your own ThreadPool, i think that is doable:
http