I'm working with open esb on a glassfish server. We have a connection pool that works with an as400 Database.
Every couple of days we get this error: Error in allocating a connection. Cause: In-use connections equal max- pool-size and expired max-wait-time. Cannot allocate more connections
The best way to relief the cp is to restart the server. We've also managed to set to another cp with the same attributes.
My questions is: Is there a way to actively "tell" the cp to release all of its open connections?
Cheers, Eran
You mentioned in your comment to Andersen that you're getting AS400 messages thrown. It's possible for you to set up automatic answers to these messages to avoid leaving the exception message open. Check out the WRKRPYLE (Work Reply List Entry) command on the AS400 to automatically reply to these errors and avoid a hang.