static SibRaDispatchEndpointActivation getEndpointActivation ( final String j2eeName ) { final String methodName = "getEndpointActivation" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( SibRaDispatchEndpointActivation . class , TRACE , methodName , new Object [ ] { j2eeName } ) ; } SibRaDispatchEndpointActivation endpoint = null ; synchronized ( _endpointActivations ) { SibRaEndpointArray endpointActivationArray = ( SibRaEndpointArray ) _endpointActivations . get ( j2eeName ) ; if ( endpointActivationArray != null ) { // Get the next endpoint endpoint = endpointActivationArray . getNextEndpoint ( ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . exit ( SibRaDispatchEndpointActivation . class , TRACE , methodName , endpoint ) ; } return endpoint ; }
Returns the endpoint activation for the message - driven bean with the given J2EE name . There is an array of endpoint activations and this method will return one by going round robin through them all . The round robin behaviour is obtained by using an internal cursor to iterate through the endpoints in the array .