private void checkTemporary ( DestinationHandler destination , boolean mqinterop ) throws SITemporaryDestinationNotFoundException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkTemporary" , new Object [ ] { destination , Boolean . valueOf ( mqinterop ) } ) ; // If a Temporary Destination, ensure it is on this connection unless mqinterop if ( destination . isTemporary ( ) && ! mqinterop && ( _temporaryDestinations . indexOf ( destination . getName ( ) ) == - 1 ) ) { SIMPTemporaryDestinationNotFoundException e = new SIMPTemporaryDestinationNotFoundException ( nls . getFormattedMessage ( "TEMPORARY_DESTINATION_CONNECTION_ERROR_CWSIP0099" , new Object [ ] { destination . getName ( ) } , null ) ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . exception ( tc , e ) ; SibTr . exit ( tc , "checkTemporary" , e ) ; } throw e ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "checkTemporary" ) ; }
Checks to see if the destination is temporary and the connection used to create the temp destination is the same as the one trying to access it .