Results 1 to 3 of 3
- 08-10-2009, 06:33 PM #1
Member
- Join Date
- Aug 2009
- Posts
- 5
- Rep Power
- 0
Open Cursors exceeed...question for fellow gurus
In all our application code which connects to the backend oracle database using DAO patten classes.. we are using JDBC to directly connect to the database (using a connection pool from app server) managing the transactions in the DAO itself. All the methods in the DAO class are written so that connection object is explicitly closed in the finally block. However, I have noticed that in many places were are not closing prepared statements and resultsets which we are instantiating from these connections.
Ocassionally - we see a max cursors exceeded error in our logs. Could this be due to the statements and resultset objects not being explicitly closed.
My understanding was that if the connections or statements were not closed correctly in the appln - the app server could crash and open cursors exceeded should not come in any case. Gurus your opinion please.:rolleyes:
- 08-11-2009, 01:22 AM #2
Senior Member
- Join Date
- Mar 2009
- Posts
- 552
- Rep Power
- 5
You posted something similar in the New to Java forum. Again, as emceenugget said there, create a test application.
If a moderator could lock this, that'd be greatIf the above doesn't make sense to you, ignore it, but remember it - might be useful!
And if you just randomly taught yourself to program, well... you're just like me!
-
Similar Threads
-
[SOLVED] Custom Cursors: Thick Lines
By Paul Richards in forum Advanced JavaReplies: 4Last Post: 06-03-2009, 09:56 AM -
Hello gurus' in the house
By javahsm in forum New To JavaReplies: 0Last Post: 11-29-2008, 06:11 PM -
A newbie question: How do I take a J2ME open source and create a project
By Anona in forum CLDC and MIDPReplies: 0Last Post: 09-28-2008, 11:02 AM -
hi gurus
By bhbzorro in forum IntroductionsReplies: 1Last Post: 06-26-2007, 10:30 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks