Ensure provided temp data store is started

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1097069 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2011-04-27 10:29:32 +00:00
parent adc45e8801
commit c395917fa7
1 changed files with 7 additions and 0 deletions

View File

@ -1465,6 +1465,13 @@ public class BrokerService implements Service {
*/
public void setTempDataStore(PListStore tempDataStore) {
this.tempDataStore = tempDataStore;
try {
tempDataStore.start();
} catch (Exception e) {
RuntimeException exception = new RuntimeException("Failed to start provided temp data store: " + tempDataStore, e);
LOG.error(exception.getLocalizedMessage(), e);
throw exception;
}
}
public int getPersistenceThreadPriority() {