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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...