See JMS1.1 spec section 4.4, especially 4.4.6, e.g.:

"Sessions are designed for serial use by one thread at a time. The only 
exception
to this occurs during the orderly shutdown of the session or its connection. See
Section 4.3.5 ?Closing a Connection,? and Section 4.4.1 ?Closing a Session,? for
further details.
One typical use is to have a thread block on a synchronous MessageConsumer
until a message arrives. The thread may then use one or more of the session?s
MessageProducers.
It is erroneous for a client to use a thread of control to attempt to
synchronously receive a message if there is already a client thread of control
waiting to receive a message in the same session."

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016308
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to