use of org.jboss.marshalling.MarshallingConfiguration in project netty by netty.
the class SerialCompatibleMarshallingDecoderTest method createMarshallingConfig.
@Override
protected MarshallingConfiguration createMarshallingConfig() {
// Create a configuration
final MarshallingConfiguration configuration = new MarshallingConfiguration();
configuration.setVersion(5);
return configuration;
}
use of org.jboss.marshalling.MarshallingConfiguration in project netty by netty.
the class SerialCompatibleMarshallingEncoderTest method createMarshallingConfig.
@Override
protected MarshallingConfiguration createMarshallingConfig() {
// Create a configuration
final MarshallingConfiguration configuration = new MarshallingConfiguration();
configuration.setVersion(5);
return configuration;
}
use of org.jboss.marshalling.MarshallingConfiguration 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();
final InputStream stream = DatabaseTimerPersistence.class.getClassLoader().getResourceAsStream("timer-sql.properties");
sql = new Properties();
try {
sql.load(stream);
} catch (IOException e) {
throw new StartException(e);
} finally {
safeClose(stream);
}
extractDialects();
investigateDialect();
checkDatabase();
if (refreshInterval > 0) {
refreshTask = new RefreshTask();
timerInjectedValue.getValue().schedule(refreshTask, refreshInterval, refreshInterval);
}
}
Aggregations