2 Replies Latest reply: Nov 2, 2012 2:28 AM by 859967 RSS

    cannot create more JMS connection

    859967
      Hi,

      I got the following error:
      WARNING: RAR5117 : Failed to obtain/create connection from connection pool [ jms/batchExecutorMDBConnectionFactoryPool ]. Reason : com.sun.appserv.connectors.internal.api.PoolingException: In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections.
      I have cleared all messages in the queue, redeployed my application. But somehow the connections still existed in the connection pool and therefore i always see this error appearing whenever i re-launch my application.

      I created JMS connection locally and close it immediately after sending message as suggested out there to avoid connection leaking.

      Could you help me how to clear all connections in order to re-run my application. Then slowly i can find out where the connection leaking is?

      I am using glassfish 3.1.2 with the setting 500 maximum connection in the jms connection factory

      thanks,

      -CM