The J2EE/JCA specification provides a WorkManager interface which provides a J2EE compliant way of working with a thread pool, scheduling work and creating timerse. In enterprise environments & containers you often wish to setup the thread for security or transaction contexts; so WorkManager works well with application server components.
The following example shows how to setup a WorkManager in Jencks inside your spring.xml
This will also associate a default transaction manager (with no XA recovery by default). Notice you can configure the thread pool size.