public String echo(AEDTO aeData, Integer nrOfTests) throws Exception { try { ActiveAssociation aa = openAssociation(aeData, UIDs.Verification); try { echo(aa, nrOfTests.intValue()); return "Echo " + aeData + " successfully!"; } finally { try { aa.release(true); } catch (Exception e) { log.warn("Failed to release " + aa.getAssociation()); } } } catch (Exception e) { log.error("Echo" + aeData + " failed", e); return "Echo" + aeData + " failed: " + e; } }
public boolean checkEcho(AEDTO aeData) { try { ActiveAssociation aa = openAssociation(aeData, UIDs.Verification); try { echo(aa, 1); return true; } finally { try { aa.release(true); } catch (Exception e) { log.warn("Failed to release " + aa.getAssociation()); } } } catch (Exception e) { log.error("Echo" + aeData + " failed", e); return false; } }