This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Cursor  is incrementing for a connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Cursor  is incrementing for a connection" Watch "Cursor  is incrementing for a connection" New topic
Author

Cursor is incrementing for a connection

Madhavi Singh
Greenhorn

Joined: Mar 11, 2008
Posts: 1
Hi,
Java method is invoking a Stored Procedure. in the finally block, the corresponding Resultset and Statement is closed. Connection is not closed, as it is reused.
The method has been checked for the same many times, however from Database side query, it is evident that the cursor number is increasing for the connection.
What is the reason of increasing the cursor count in spite of closing Resultset and Statement. What will be the solution?

p.s. there are no exceptions occurred for closing the both in finally.
 
Have you checked out Aspose?
 
subject: Cursor is incrementing for a connection
 
It's not a secret anymore!