diff --git a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java index f22e544f61..286931eb76 100644 --- a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java +++ b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java @@ -20,7 +20,13 @@ import java.io.File; import java.io.FileFilter; import java.io.IOException; import java.nio.charset.Charset; -import java.util.*; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.CopyOnWriteArrayList; import javax.transaction.xa.Xid; @@ -78,7 +84,7 @@ public class MultiKahaDBPersistenceAdapter extends LockableServiceSupport implem final DelegateDestinationMap destinationMap = new DelegateDestinationMap(); BrokerService brokerService; - List adapters = new LinkedList(); + List adapters = new CopyOnWriteArrayList(); private File directory = new File(IOHelper.getDefaultDataDirectory() + File.separator + "mKahaDB"); MultiKahaDBTransactionStore transactionStore = new MultiKahaDBTransactionStore(this);