solving the connection is already closed error in apache nms
Tue, Jun 19, 2012
So I started getting this error when connecting to an ActiveMQ broker as a consumer and producer from the same machine:
“the connection is already closed!”
which occurred when I tried to set the clientID on the producer, having already set up the consumer. Turned out I was using the same clientID for the consumer and the producer!