use of org.openecard.mdlw.sal.exceptions.FinalizationException in project open-ecard by ecsec.
the class MiddlewareSAL method terminate.
@Override
public TerminateResponse terminate(Terminate parameters) {
TerminateResponse resp = WSHelper.makeResponse(TerminateResponse.class, WSHelper.makeResultOK());
try {
eventMan.terminate();
mwModule.destroy();
} catch (FinalizationException ex) {
String msg = "Failed to terminate Middleware.";
LOG.error(msg, ex);
resp.setResult(WSHelper.makeResultError(ECardConstants.Minor.Disp.COMM_ERROR, msg));
}
return resp;
}
Aggregations