private boolean determineGuaranteedDelivery(Method method) {
boolean ret_delivery_guaranteed = (GuaranteedDelivery.YES == m_proxyHandlerDeliveryGuaranteed) ? true
: false;
if (!m_proxyHandlerIgnoreAnnotations) {
Asynchronous annotation = method.getAnnotation(Asynchronous.class);
if (annotation == null) {
annotation = method.getDeclaringClass().getAnnotation(Asynchronous.class);
}
if (annotation != null) {
ret_delivery_guaranteed = annotation.guaranteedDelivery();
if (ret_delivery_guaranteed && (GuaranteedDelivery.DISABLED == m_proxyHandlerDeliveryGuaranteed)) {
ret_delivery_guaranteed = false;
LogFactory.getLog(ClientRemotePojoFactory.class).error(
"Illegal use of Guaranteed Delivery, Remove 'guaranteedDelivery=true' from method: "