Timers should rarely if ever be used.
Each Timer maintains its own thread so this doesn't scale.
On the client side a scheduled executor pool is available to the session factory and this
should be used for any scheduled tasks, e.g. for http transport.
Take a look at the thread pooling chapter in the user manual. We have to be very careful
where and how threads are created, always use the pools unless you have a *very* good
reason not to (e.g. you need to set thread priority)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242770#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...