public class ServiceEngineTestServices {
public static final String module = ServiceEngineTestServices.class.getName();
public static Map testServiceDeadLockRetry(DispatchContext dctx, Map context) {
LocalDispatcher dispatcher = dctx.getDispatcher();
try {
<BUG>dispatcher.runAsync("testServiceDeadLockRetryThreadA", null, false);

dispatcher.runAsync("testServiceDeadLockRetryThreadB", null, false);

} catch (GenericServiceException e) {
String errMsg = "Error running deadlock test services: " + e.toString();
Debug.logError(e, errMsg, module);
}</BUG>
return ServiceUtil.returnSuccess();

public class ServiceEngineTestServices {
public static final String module = ServiceEngineTestServices.class.getName();
public static Map testServiceDeadLockRetry(DispatchContext dctx, Map context) {
LocalDispatcher dispatcher = dctx.getDispatcher();
try {
GenericResultWaiter threadAWaiter = dispatcher.runAsyncWait("testServiceDeadLockRetryThreadA", null, false);
GenericResultWaiter threadBWaiter = dispatcher.runAsyncWait("testServiceDeadLockRetryThreadB", null, false);
threadAWaiter.waitForResult();
threadBWaiter.waitForResult();
} catch (Exception e) {
String errMsg = "Error running deadlock test services: " + e.toString();
Debug.logError(e, errMsg, module);
return ServiceUtil.returnError(errMsg);
