PreparedStatement ps = lastConn.prepareStatement("SELECT 1 from DUAL");
if (Math.random() < 0.5d && lastConn != null)
lastConn.prepareStatement("SELECT 1 from DUAL")
9.4.4 Closing Connection Objects
An application calls the method Connection.close to indicate that it has finished
using a connection. All Statement objects created from a given Connection object
will be closed when the close method for the object is called.
go fix your code.
Users browsing this forum: Google [Bot] and 0 guests