method = pjp.getTarget().getClass().getDeclaredMethod(methodName, method.getParameterTypes());
}
Annotation[] annotations = method.getDeclaredAnnotations();
for (Annotation a : annotations) {
if (a instanceof RetryTransaction) {
RetryTransaction retryAnno = (RetryTransaction) a;
retriesLeft = retryAnno.value();
}
}
RetryTransaction retryTrx = AnnotationUtils.findAnnotation(method, RetryTransaction.class);
retriesLeft = retryTrx.value();
Throwable rootCause = null;
boolean success = false;
while (!success) {
try {
pjp.proceed();