Atmosphere/atmosphere — Issue #161: JMSBroadcaster is misusing JMS session objects
Author: mattnathan
Created: 2012-01-23 10:12:37+00:00
State: open

The JMS spec says that if you have a thread that is both a consumer and a producer of messages then you need a session for each task. In JMSBroadcaster a single session is being shared for both these tasks. When using WebSphere MQ this causes an exception when creating the TextMessage for publishing.

The simple fix is to create two sessions in the setUp method one for publishing and one for consuming.