Thanks for ur help Marina. It seems that glassfish server is not able to reclaim the closed connections. Once you explicitly set closed connection to null it works fine.
[Message sent by forum member 'amardeepsingh' (amardeepsingh)]
http://forums.java.net/jive/thread.jspa?messageID=306788