I have a Statelesss SB that puts messages on a queue queue to be sent to a remote system.

I have set the max connections to 10 on the QCF factory it is using.

Do I need to explicitly set close the connection for the queueconnection after the sendMessage() is called even though I have the cleanup in the ejbRemove()?

I am getting a new QCF connection with each call to the sendmessage(), so I guess the container tried to create this each time and it is running out?

here is the message:

[3/4/05 11:13:46:548 EST] 61315440 FreePool E J2CA0045E: Connection not available while invoking method queueRequest for resource jms/SLSB/SLSBqcf001.
[3/4/05 11:13:46:836 EST] 61315440 ConnectionMan E J2CA0020E: The Connection Pool Manager could not allocate a Managed Connection: com.ibm.websphere.ce.j2c.ConnectionWaitTimeoutException: Connection not available, Timed out waiting for 180007
at com.ibm.ejs.j2c.poolmanager.FreePool.createOrWaitForConnection(FreePool.java:1030)