[jboss-user] [JBoss Messaging] - Re: Receiving IllegalStateExceptions in client

timfox do-not-reply at jboss.com
Wed Feb 14 06:27:47 EST 2007

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
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

More information about the jboss-user mailing list