I need to run a simple scheduled task that will start every 200ms and do something simple.
Is Executors.newSingleThreadScheduledExecutor()
the proper way of obtaining scheduled executor service on JBoss?
It is said that spawning unmanaged threads on Java EE platform is not recommended. It seems that this thread will be an unmanaged one.
On the other hand I don't want to declare MBeans etc. for such simple thing.
Edit
There is something as org.jboss.resource.work.JBossWorkManager
but I can't find an example of scheduled work.