I'm developing an application on a Weblogic application server, and in my application I have a need to create a new process (python).
This process has 2 output streams (std + err) that should be read by my application, because the OS can freeze the process if these streams' buffers are full.
The thing is, I want to read these streams asynchronously, because I don't really care for the process output, which means that I need 2 new threads for the job (and I don't need to wait for them to stop).
I know it is not recommended to create new threads in an application server, and I wonder what is the best way to handle this case.