mirror of https://github.com/apache/activemq.git
fixed class cast exception
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@491128 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
71e44ce436
commit
fe3f492321
|
@ -141,10 +141,14 @@ public class PooledConnectionFactory implements ConnectionFactory, Service {
|
|||
|
||||
public void stop() throws Exception{
|
||||
for(Iterator iter=cache.values().iterator();iter.hasNext();){
|
||||
ConnectionPool connection = (ConnectionPool) iter.next();
|
||||
LinkedList list=(LinkedList)iter.next();
|
||||
for(Iterator i=list.iterator();i.hasNext();){
|
||||
ConnectionPool connection=(ConnectionPool)i.next();
|
||||
connection.close();
|
||||
}
|
||||
}
|
||||
cache.clear();
|
||||
}
|
||||
|
||||
public ObjectPoolFactory getPoolFactory() {
|
||||
if (poolFactory == null) {
|
||||
|
|
Loading…
Reference in New Issue