[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBoss 2.0 Thread model
david.lloyd@jboss.com
do-not-reply at jboss.com
Tue Apr 1 13:24:09 EDT 2008
"timfox" wrote : I have seen this problem come up many times in different guises.
|
| What we're really talking about here is some kind of "sticky" thread pool executor.
|
| Where you have a pool of threads to service requests, but consecutive invocations can have an affinity for a particular thread depending on some key (this corresponds to the "session id").
|
| I'm kind of surprised j2se doesn't already contain something that can do this.
Yeah - well technically it doesn't have to be the same thread. The executor just has to guarantee that B "happens-after" A, in the same thread or a different one. I agree on the j2se statement (although it's really a trivial amount of code to implement; see the above link).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140654#4140654
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140654
More information about the jboss-dev-forums
mailing list