When I'm trying to add to the message sending queue, The messages are successfully added to the queue, but the MDB is not working properly OR the messages are not fetched. It throws the following error :

I was testing my server by adding 100 000 messages to queue. They all are added to the queue, but Its not getting listened by the MDB.

After leaving the server idle for a while we get the following error : Caused by: java.lang.IllegalStateException: Cannot create session factory, server locator is closed (maybe it has been garbage collected)

After this when I'm trying to send the message to queue, the message will be added to the queue but it does not get recieved from the queue.

When I restart the server, I'm able to add and recive messages from the queue.

you need to give me something i can reproduce, i.e. all server configs, how you start the server and a test, not just some java code, i dont know where your code should live, is it a standalone client, mdb, session bean etc etc.

When I test the JMS queue using JMeter by sending 100 000 messages to queue it throws the following exception on 2gb RAM :-

--- 19:30:23,747 ERROR [org.apache.catalina.connector.CoyoteAdapter] An exception or error occurred in the container during the request processing: java.lang.RuntimeException: java.lang.IllegalStateException

at org.jboss.as.web.ThreadSetupBindingListener.unbind(ThreadSetupBindingListener.java:67) [jboss-as-web-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]

--- 19:30:23,430 ERROR [stderr] javax.jms.JMSException: Could not create a session: IJ000453: Unable to get managed connection for java:/JmsXA