I've been developing a solution based on Geotools 2.4 and later 2.5, but there is a problem, when the application runs on my machine and i connect to a new FeatureType, the connection remains opened, this connection doesn't get closed and after some hours my PostgreSQL has opened maximum of sockets and doesn't response any more.
Windows XP professional SP2.
JDK 1.6.0
PostgreSQL 8.3, (but 8.1 has the same problem)
gt2-api-2.4.2
How can i fix this bug?