fix compile error

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@391818 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-04-05 21:22:50 +00:00
parent 97f2ca1eef
commit 6d2c2f9619
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public class BrokerServiceGBeanImpl implements GBeanLifecycle, BrokerServiceGBea
if (brokerService == null) {
brokerService = createContainer();
}
DefaultPersistenceAdapterFactory persistenceFactory = brokerService.getPersistenceFactory();
DefaultPersistenceAdapterFactory persistenceFactory = (DefaultPersistenceAdapterFactory) brokerService.getPersistenceFactory();
persistenceFactory.setDataDirectory(serverInfo.resolve(dataDirectory));
persistenceFactory.setDataSource((DataSource) dataSource.$getResource());
brokerService.start();