PostgisAuthorityFactory hangs onto connectionPool
-------------------------------------------------

         Key: GEOT-723
         URL: http://jira.codehaus.org/browse/GEOT-723
     Project: GeoTools
        Type: Bug
  Components: postgis  
    Versions: 2.1.RC1, 2.2.M0    
 Reporter: Justin Deoliveira
 Assigned to: Chris Holmes 
     Fix For: 2.2.M1, 2.1.1


The PostgisDataStore hangs onto a static reference to its authority factory. 
The PostgisAuthorityFactory takes a ConnecetionPool in its constructor (which 
it gets from the DataStore). Because the reference is static if a new datastore 
is created, a new authority factory is not which means its connectionPool can 
go stale if someone else closes it.

The fix is easy, make the reference non-static, or keep it static and have the 
datastore check the state of the authority factories connection pool.

If you give me the go ahead chris I will commit the fix, just following hacking 
guidlines and setting up a task for it.

Justin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to