code: public void setTranEnlistmentNotNeeded(int reason)
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
          {
              Tr.entry(tc, "MEF.setTranEnlistmentNotNeeded for enterprise class "
                           + beanMetaData.enterpriseBeanName + ", reason =  " + reason);
          }
  
          ivEnlistNotNeeded = true;
          ivEnlistNotNeededReason = reason;
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
          {
              Tr.exit(tc, "MEF.setTranEnlistmentNotNeeded for enterprise class "
                          + beanMetaData.enterpriseBeanName);
          }
      }
docs: Method setTranEnlistmentNotNeeded.
  <p>
  This method indicates that the MessageEndpointFactory should NOT enlist
  an XAResource in a transaction.
  
  @param reason This is the reason code for why the MessageEndpointFactory
  does not need to enlist. Valid reason codes are:
  <p>
  MessageEndpointFactory.RA_DOES_NOT_SUPPORT_XATRANSACTIONS - this indicates
  that the ResourceAdapter has indicated that it does not support XATransactions.
  <p>
  MessageEndpointFactory.ERROR_DURING_TRAN_RECOVERY_SETUP - this indicates
  that the RALifeCycleManager encounter an error which prevented it from
  setting up transaction recovery for this ResourceAdapter. The
  MessageEndpointFactory should throw an exception and log an appropriate
  message if the RA attempts to use an XAResource in a transaction. This
  can't be allowed since recovery setup has failed.