[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Usage of Timers in JBM 2

timfox do-not-reply at jboss.com
Fri Jul 10 03:37:29 EDT 2009


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#4242770

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242770



More information about the jboss-dev-forums mailing list