[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Bounding the number of threads created by the MDB contai

timfox do-not-reply at jboss.com
Mon Jun 9 17:13:20 EDT 2008


I don't really see how a pooling approach will work.

Each session requires an executor so it can ensure that deliveries (etc) for that session are executed on a different thread but in the correct order.

If you got a thread from the pool each time to execute the delivery then you couldn't guarantee that order any more, since you won't guarantee it's the same thread being used.

What might work is pooling executors rather than threads, but then you could get into deadlock situations where one session is waiting on getting an executor but can't complete because the executor pool is full and the system will just hang.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156834#4156834

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



More information about the jboss-dev-forums mailing list