[AMQ-6788] Explain how to fix the problem in the exception

This commit is contained in:
Christian Schneider 2017-08-08 20:55:44 +02:00
parent 267fe73898
commit 8646bb1010
1 changed files with 2 additions and 0 deletions

View File

@ -1787,6 +1787,8 @@ public class BrokerService implements Service {
this.tempDataStore = (PListStore) getClass().getClassLoader().loadClass(clazz).newInstance();
this.tempDataStore.setDirectory(getTmpDataDirectory());
configureService(tempDataStore);
} catch (ClassNotFoundException e) {
throw new RuntimeException("Kahadb class PListStoreImpl not found. Add activemq-kahadb jar or set persistent to false on BrokerService.", e);
} catch (Exception e) {
throw new RuntimeException(e);
}