From 53454ccb362ff19ef827d9d3d158155b295570d6 Mon Sep 17 00:00:00 2001 From: "Hiram R. Chirino" Date: Mon, 24 Apr 2006 15:41:59 +0000 Subject: [PATCH] Don't open data files again if the store has been closed.. on windows tests were failing since the open data files could not be deleted. git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@396583 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/activemq/kaha/impl/KahaStore.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/activemq-core/src/main/java/org/apache/activemq/kaha/impl/KahaStore.java b/activemq-core/src/main/java/org/apache/activemq/kaha/impl/KahaStore.java index 36189806de..2e67dec870 100644 --- a/activemq-core/src/main/java/org/apache/activemq/kaha/impl/KahaStore.java +++ b/activemq-core/src/main/java/org/apache/activemq/kaha/impl/KahaStore.java @@ -183,6 +183,8 @@ public class KahaStore implements Store{ } protected synchronized void initialize() throws IOException{ + if( closed ) + throw new IOException("Store has been closed."); if(!initialized){ initialized=true; directory=new File(name);