@ Deprecated public void setEndpoint ( String endpoint ) throws JMSException { try { amazonSQSClient . setEndpoint ( endpoint ) ; } catch ( IllegalArgumentException ase ) { JMSException jmsException = new JMSException ( ase . getMessage ( ) ) ; throw ( JMSException ) jmsException . initCause ( ase ) ; } }
Sets SQS endpoint and wraps IllegalArgumentException . Deprecated . Instead of manipulating settings of existing AmazonSQS client provide correct configuration when creating it through SQSConnectionFactory constructors .