[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBoss 2.0 Thread model
timfox
do-not-reply at jboss.com
Tue Apr 1 13:07:09 EDT 2008
Jeff - I think it's best for your class to have no knowledge of what a "jms session" is.
Instead, you can add a new attribute on Packet - executorID which just takes an int value (say).
This value is used in the MINA handler to look up the "thread" (or executor or however it is done) for processing the packet after receipt.
To your class it's just an id - it knows nothing about jms session ids.
Before sending a packet you just set this value at our level. You make sure you set the same value for all requests on the same core session, and if the requests are on a connection or other object you can use its id.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140642#4140642
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140642
More information about the jboss-dev-forums
mailing list