public void copyMessageToExceptionDestination ( LocalTransaction tran ) throws SINotPossibleInCurrentConfigurationException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "copyMessageToExceptionDestination" , tran ) ; SIMPMessage msg = getSIMPMessage ( ) ; ExceptionDestinationHandlerImpl edh = null ; if ( _destinationHandler . isLink ( ) ) edh = new ExceptionDestinationHandlerImpl ( _destinationHandler ) ; else { edh = new ExceptionDestinationHandlerImpl ( null , _messageProcessor ) ; edh . setDestination ( _destinationHandler ) ; } edh . sendToExceptionDestination ( msg . getMessage ( ) , null , tran , SIRCConstants . SIRC0036_MESSAGE_ADMINISTRATIVELY_REROUTED_TO_EXCEPTION_DESTINATION , null , new String [ ] { "" + _messageID , _destinationHandler . getName ( ) , _messageProcessor . getMessagingEngineName ( ) } ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "copyMessageToExceptionDestination" ) ; }
Copy the message to the exception destination