use of org.jboss.marshalling.river.RiverMarshallerFactory in project wildfly by wildfly.
the class DatabaseTimerPersistence method start.
@Override
public void start(final StartContext context) throws StartException {
factory = new RiverMarshallerFactory();
configuration = new MarshallingConfiguration();
configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoader.getValue()));
managedReference = dataSourceInjectedValue.getValue().getReference();
dataSource = (DataSource) managedReference.getInstance();
investigateDialect();
loadSqlProperties();
checkDatabase();
refreshTask = new RefreshTask();
if (refreshInterval > 0) {
timerInjectedValue.getValue().schedule(refreshTask, refreshInterval, refreshInterval);
}
}
Aggregations