code: private void activateEndpointInternal(MessageEndpointFactoryImpl mef, boolean explicit) throws ResourceException {
          // Wait for the destination if specified by the MDB.  If it is instead
          // specified on the activationSpec, then the EndpointActivationService
          // won't be registered until the destination is available, so we
          // implicitly wait for the destination anyway.  If the destination isn't
          // specified at all, then the activation will fail.
  
          if (mef.adminObjectServiceInfo != null && mef.adminObjectServiceInfo.serviceRef == null) {
              if (explicit) {
                  Tr.warning(tc, "MDB_DESTINATION_NOT_FOUND_CNTR4016W", mef.getJ2EEName().getComponent(), mef.adminObjectServiceInfo.id);
              }
              return;
          }
  
          if (mef.schemeJndiNameInfo != null && !mef.schemeJndiNameInfo.lookupSucceeded()) {
              if (explicit) {
                  Tr.warning(tc, "MDB_DESTINATION_NOT_FOUND_CNTR4016W", mef.getJ2EEName().getComponent(), mef.schemeJndiNameInfo.getJndiName());
              }
          }
  
          EndpointActivationService eas = mef.endpointActivationServiceInfo.getService();
          if (eas == null) {
              if (explicit) {
                  Tr.warning(tc, "MDB_ACTIVATION_SPEC_NOT_FOUND_CNTR4015W", mef.getJ2EEName().getComponent(), mef.endpointActivationServiceInfo.id);
              }
              return;
          }
  
          if (!isServerStarted) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "server is not started");
              }
              return;
          }
  
          mef.activateEndpointInternal(eas,
                                       mef.endpointActivationServiceInfo.getMaxEndpoints(),
                                       mef.adminObjectServiceInfo == null ? null :
                                                       (AdminObjectService) context.locateService("adminObjectServices", mef.adminObjectServiceInfo.serviceRef)
                          );
          mef.runtimeActivated = true;
      }
docs: Attempt to activate an endpoint if all its services are available.
  
  @param explicit true if {@link #activateEndpoint} was called
  @see #activateEndpoint