[JBoss JIRA] Created: (JBCACHE-1424) JDBCCacheLoader does not close ConnectionFactory
by Krzysztof Sobolewski (JIRA)
JDBCCacheLoader does not close ConnectionFactory
------------------------------------------------
Key: JBCACHE-1424
URL: https://jira.jboss.org/jira/browse/JBCACHE-1424
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Cache loaders
Affects Versions: 2.2.1.CR1
Reporter: Krzysztof Sobolewski
Assignee: Manik Surtani
Attachments: AdjListJDBCCacheLoader.java.patch
Maybe I don't understand something, but I think this is a bug that the method AdjListJDBCCacheLoader.stop() closes the ConnectionFactory only if the config.getDropTable() option is set to true. I don't want to drop my table, but I want to close the ConnectionFactory (because C3P0 won't unregister itself and I get a MBean leak after restart of my component).
My guess is that the try block was misplaced.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira