mirror of
https://github.com/apache/activemq.git
synced 2025-02-17 23:45:59 +00:00
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
@ -139,12 +139,16 @@ public class PooledConnectionFactory implements ConnectionFactory, Service {
|
||||
}
|
||||
}
|
||||
|
||||
public void stop() throws Exception {
|
||||
for (Iterator iter = cache.values().iterator(); iter.hasNext();) {
|
||||
ConnectionPool connection = (ConnectionPool) iter.next();
|
||||
public void stop() throws Exception{
|
||||
for(Iterator iter=cache.values().iterator();iter.hasNext();){
|
||||
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…
x
Reference in New Issue
Block a user