I am getting the following error while pulling data from db2
Error Trace in closeConnection() :java.sql.Connection.close() requested while a transaction is in progress on the connection.The transaction remains active, and the connection cannot be closed.
But the data is pulled successfully,
Can any one help me in finding solution for the above error
posted 9 years ago
Either call Connection.setAutoCommit(true) [usually done when you open the connection] to automatically commit the transaction or explicitly call commit() or rollback() just before close(). [ December 21, 2006: Message edited by: Scott Johnson ]