Petr Janda · Mar 12, 2010 at 03:45 PM ·
Using Java Threads with Wowza
i have quick question about using threads inside our modules for WMS2.0.
I am seriously considering running new thread inside our module because some database queries and then lot of calculations should be done in periodical time period. I think it will be good to run this task in separate thread, because all other apps can run without waiting for it.
I also saw that IServer object contains some WMS internal ThreadPool object.
My question is what is the best practice to start new thread in wowza module? Can I use standard Java without using WMS internal pool or its better to use that one? In that case how can i get to server object implementing IServer interface inside one of function in module extending ModuleBase class?