Neelima/Sonam/Srini,
We are experiencing a new problem with our database connections. We are using connection pooling and we have ‘watt.server.db.testSQL’ directive specified in server.cnf. Once we enabled connection pooling and enabled the directive mentioned before, our null pointer exceptions were gone and all the SQL services started running fine. The new problem that we are facing is that after 1 or 2 hours of continuous testing, none of the services are able to get connections. The number of active connections/available connections (using wm.server.db.getConnectionInfo method) is always greater than one. number of active connections are not even close to max pool size.
We double checked to make sure that we are explicitly closing the connections in our code.
To describe about the services, we open the connection using connect first, then we have try catch sequence blocks, in the try block we do some processing which might take more than 1 or 2 minutes in some cases and there might be some execSQL statements in between. once all the processing is done we close the connection. we also use close method in the catch block if dbConnection object is not null.
during processing, there are chances that firewall might timeout our initial connection object. but i guess since we are using watt.server.db.testSQL directive we get a new connection in our try block. what do u think might happen to the connection that was dropped by the firewall? Would IS return the connection to the pool?
any thots on this will be very helpful
Thanks in advance
Hari
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB