code: public void endpointActivation(MessageEndpointFactory mef, ActivationSpec as) throws Exception
     {
        if (mef == null)
           throw new Exception("MessageEndpointFactory is null");
  
        if (as == null)
           throw new Exception("ActivationSpec is null");
  
        as.setResourceAdapter(resourceAdapter);
        
        try
        {
           as.validate();
        }
        catch (UnsupportedOperationException uoe)
        {
           // Ignore
        }
  
        if (is16)
        {
           verifyBeanValidation(as);
        }
        
        resourceAdapter.endpointActivation(mef, as);
  
        InflowRecovery ir = null;
        if (transactionIntegration != null && transactionIntegration.getRecoveryRegistry() != null)
        {
           XAResourceRecovery xar = transactionIntegration.createXAResourceRecovery(resourceAdapter,
                                                                                    as,
                                                                                    productName, productVersion);
  
           ir = new InflowRecoveryImpl(mef, as, xar, transactionIntegration.getRecoveryRegistry());
           ir.activate();
        }
  
        activeEndpoints.put(new Endpoint(mef, as), ir);
     }
docs: {@inheritDoc}