use of com.github.nagyesta.abortmission.strongback.rmi.service.impl.SingletonLaunchStatisticsService in project abort-mission by nagyesta.
the class AbstractInMemoryDataSourceIntegrationTest method setUp.
@BeforeEach
void setUp() throws Exception {
try {
service = new SingletonLaunchStatisticsService();
final Remote abortMissionService = UnicastRemoteObject.exportObject(service, port);
if (Arrays.asList(registry.list()).contains(RmiServerConstants.SERVICE_NAME)) {
registry.rebind(RmiServerConstants.SERVICE_NAME, abortMissionService);
} else {
registry.bind(RmiServerConstants.SERVICE_NAME, abortMissionService);
}
} catch (final Exception ex) {
throw new StrongbackException("Server startup failed.", ex);
}
}
Aggregations