I tried to process a huge volume (50 to 100 messages per sec) of messages. I am using jBoss as JMS provider. I am using 3 separate queues to process incoming data and to send response back.
I have the following code in constructor of message producer
qProducer.q = QueueUtil.getQueue(QueueUtil.ENGINE_JNDI_NAME, env); qProducer.qConn = QueueUtil.getQueueConnection(env); qProducer.qSesn = qProducer.qConn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
The session is closed