pranesh yelkur

Greenhorn
+ Follow
since Sep 29, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by pranesh yelkur

My application is using following way to create a statement through a connection.
1: Connection conn = null;
2: try {
3: conn = ServerUtil.getConnection();
4: ps = conn.prepareStatement(sql.toString());
5: :
6: :
7: } catch {
8: }
9: finally {
10: ServerUtil.releaseConnection();
11: }

ServerUtil is a utility class which provides method to get instance of connection and closing the connection.
But sometimes the application throws SQLException at line number 4 saying that connection is already closed.

The application is deployed in JBoss server and the ServerUtil class is getting connection from some connection pool.

Please reply back in case you need more information.
Waiting for reply.

With Regards
Pranesh Yelkur