@ Override public void setDestination ( SIDestinationAddress destinationAddr ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setDestination" , destinationAddr ) ; if ( destinationAddr != null ) { try { _originalDestination = _messageProcessor . getDestinationManager ( ) . getDestination ( ( JsDestinationAddress ) destinationAddr , true ) ; } catch ( SIException e ) { // No FFDC code needed /* Generate warning but retry with default exception destination */ SibTr . warning ( tc , "EXCEPTION_DESTINATION_WARNING_CWSIP0291" , new Object [ ] { destinationAddr . getDestinationName ( ) , _messageProcessor . getMessagingEngineName ( ) , e } ) ; // Create a handler to the default if provided destination is inaccessible _originalDestination = null ; } } else _originalDestination = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setDestination" , _originalDestination ) ; }
Sets the destination that could not be delivered to . Looks up the destination given its name .