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.
Hi, I have a qusetion about freeing of resources when I am using JDBC code.My application works pretty well for sometime and after sometime it behaves in a weird manner.Basically my application involves servlets talking to backend database and retreiving the results back.To remedy for the solution I have to restart my application server and you know what it works pretty well this time.In my JDBC code I did not close my statement but I did close my connection and it works fine.Also I am using the CreateStatement() in a try block.Is it advisable to use it there or put it before the try statement,could anyone please let me know of what exactly is happening here. Thanking you, Ashwin