/** * Check MDB methods TX type, is cached here * * @return the transaction type */ public byte getMethodTransactionType() { if (methodTransactionType == TX_UNSET) { Class[] sig = { Message.class }; methodTransactionType = getMethodTransactionType("onMessage", sig); } return methodTransactionType; }
/** * Check MDB methods TX type, is cached here * * @return the transaction type */ public byte getMethodTransactionType() { if (methodTransactionType == TX_UNSET) { Class[] sig = { Message.class }; methodTransactionType = getMethodTransactionType("onMessage", sig); } return methodTransactionType; }
@Override public byte getMethodTransactionType(String methodName, Class[] params, InvocationType iface) { // A JMS MDB may only ever have one method if (isJMSMessagingType()) return getMethodTransactionType(); else return getMethodTransactionType(methodName, params); }
@Override public byte getMethodTransactionType(String methodName, Class[] params, InvocationType iface) { // A JMS MDB may only ever have one method if (isJMSMessagingType()) return getMethodTransactionType(); else return getMethodTransactionType(methodName, params); }
/** Helper to check if the tx type is TX_REQUIRED. */ private boolean isTxRequired() { MessageDrivenMetaData md = (MessageDrivenMetaData)con.getBeanMetaData(); return md.getMethodTransactionType() == MetaData.TX_REQUIRED; } }
public boolean isDeliveryTransacted(Method method) throws NoSuchMethodException { boolean result = false; int transType = metaData.getMethodTransactionType(method.getName(), method.getParameterTypes(), InvocationType.LOCAL); if (transType == MetaData.TX_REQUIRED) result = true; if (trace) log.trace("isDeliveryTransacted " + container.getBeanMetaData().getContainerObjectNameJndiName() + " method=" + method + " result=" + result); return result; }
if (getMethodTransactionType() == TX_REQUIRED)
if (getMethodTransactionType() == TX_REQUIRED)