use of org.eclipse.scanning.api.event.IEventService in project gda-core by openGDA.
the class SubmitScanToScriptSection method initialize.
@Override
public void initialize(MappingExperimentView mappingView) {
super.initialize(mappingView);
final IEventService eventService = getService(IEventService.class);
try {
final URI activeMQUri = new URI(LocalProperties.getActiveMQBrokerURI());
jobQueueProxy = eventService.createJobQueueProxy(activeMQUri, EventConstants.SUBMISSION_QUEUE, EventConstants.CMD_TOPIC, EventConstants.ACK_TOPIC);
} catch (Exception e) {
logger.error("Error creating consumer proxy", e);
}
}
use of org.eclipse.scanning.api.event.IEventService in project gda-core by openGDA.
the class TimeSeriesScanView method getRunnableDeviceService.
private IRunnableDeviceService getRunnableDeviceService() throws ScanningException {
if (runnableDeviceService == null) {
try {
final IEventService eventService = eclipseContext.get(IEventService.class);
final URI jmsURI = new URI(LocalProperties.getActiveMQBrokerURI());
return eventService.createRemoteService(jmsURI, IRunnableDeviceService.class);
} catch (EventException | URISyntaxException e) {
throw new ScanningException(e);
}
}
return runnableDeviceService;
}
Aggregations