@ Override public void send ( Destination destination , Message message ) throws JMSException { if ( destination == null ) { throw new InvalidDestinationException ( "Destination cannot be null" ) ; } if ( destination instanceof SQSQueueDestination ) { send ( ( Queue ) destination , message ) ; } else { throw new InvalidDestinationException ( "Incompatible implementation of Destination. Please use SQSQueueDestination implementation." ) ; } }
Sends a message to a queue destination .