I need to run a simple scheduled task that starts every 200 ms and does something simple.
Is Executors.newSingleThreadScheduledExecutor() right way to get the scheduled executor service on JBoss?
They say that spawning unmanaged threads on the Java EE platform is not recommended. It seems that this thread will be uncontrollable.
On the other hand, I do not want to declare MBeans, etc. for such a simple thing.
Edit
There is something like org.jboss.resource.work.JBossWorkManager , but I can not find an example of the planned work.
source share