hi i wanted to list out list of java classes, where the connection/preparedstatement open. Is there any readymade java code/tool available to check in the DAO package.
sorry for that, i wanted to list all java classes in a package, where connection is opened but not closed. i wanted to get those java classes list. thanks
You could perhaps use javap to disassemble the classes. This might enable you to find classes where the Connection.close method was not called. But just because a class contains a call to Connection.close, that doesn't mean the call is actually executed reliably and correctly at run time. There isn't any automated way to determine that.
So you might be better off just doing a source-code search to identify the classes where connections are created, then have a person look at each of those classes.