mirror of https://github.com/apache/activemq.git
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:
parent
adc45e8801
commit
c395917fa7
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue