use of eu.europa.ec.fisheries.schema.exchange.module.v1.UpdateLogStatusRequest in project UVMS-ExchangeModule-APP by UnionVMS.
the class ExchangeEventIncomingServiceBean method updateLogStatus.
@Override
public void updateLogStatus(@Observes @UpdateLogStatusEvent ExchangeMessageEvent message) {
try {
UpdateLogStatusRequest request = JAXBMarshaller.unmarshallTextMessage(message.getJmsMessage(), UpdateLogStatusRequest.class);
String logGuid = request.getLogGuid();
ExchangeLogStatusTypeType status = request.getNewStatus();
exchangeLog.updateStatus(logGuid, status);
} catch (ExchangeLogException e) {
fireExchangeFault(message, "Could not update the status of a message log.", e);
} catch (ExchangeModelMarshallException e) {
fireExchangeFault(message, "Could not unmarshall the incoming UpdateLogStatus message", e);
}
}
Aggregations