private void activateDeferredEndpoints ( Set < MessageEndpointFactoryImpl > mefs ) { for ( MessageEndpointFactoryImpl mef : mefs ) { if ( ! mef . runtimeActivated ) { try { if ( mef . endpointActivationServiceInfo . getAutoStart ( ) == false && mef . shouldActivate == false ) { Tr . info ( tc , "MDB_ENDPOINT_NOT_ACTIVATED_AUTOSTART_CNTR4116I" , mef . getJ2EEName ( ) . getComponent ( ) , mef . getJ2EEName ( ) . getModule ( ) , mef . getJ2EEName ( ) . getApplication ( ) , mef . endpointActivationServiceInfo . id ) ; return ; } activateEndpointInternal ( mef , false ) ; } catch ( Throwable ex ) { // The endpoint has been placed back in the pending state, // nothing else to do; hopefully the customer will see the // errors in the log and correct the problem, and when the // activation spec comes back up it will trigger another // attempt to activate. if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Ignoring unexpected exception : " + ex ) ; } } } } }
Attempt to activate a set of endpoints if all services are available and they are not already activated .