private void deleteTemporaryDestination ( Destination destination ) { log . debug ( "Delete temporary destination: '{}'" , destination ) ; try { if ( destination instanceof TemporaryQueue ) { ( ( TemporaryQueue ) destination ) . delete ( ) ; } else if ( destination instanceof TemporaryTopic ) { ( ( TemporaryTopic ) destination ) . delete ( ) ; } } catch ( JMSException e ) { log . error ( "Error while deleting temporary destination '" + destination + "'" , e ) ; } }
Delete temporary destinations .