hi
i am facing problem with producer,
My producer stops producing messages after producing 1542 messages on active
mq
bellow is my output after running producer thread
OUTPUT
Message Sent : Hello This is a text message on active MQ : 1542
Exception in thread ActiveMQ Transport:
I'd say you run out of memory on the broker due to a memory leak in
the connection handling, every closed connection leaves a thread open
and still hogs some memory. You can check that with jConsole.
Can you try reusing or pooling the connections? There's a
PooledConnectionFactory that does this.
yes you were right.
connection.close(); was missing in finally block... and now the program is
working fine...
}finally{
producer = null;
connectionFactory = null;
connection = null;
session =