List of usage examples for com.amazonaws.services.sqs AmazonSQSClient setSignerRegionOverride
public final void setSignerRegionOverride(String signerRegionOverride)
From source file:com.amazon.sqs.javamessaging.SQSConnectionFactory.java
License:Open Source License
private void configureClient(AmazonSQSClient client) throws JMSException { try {/* w w w .j a v a 2 s.c o m*/ if (region != null) { client.setRegion(region); } if (endpoint != null) { client.setEndpoint(endpoint); } if (signerRegionOverride != null) { client.setSignerRegionOverride(signerRegionOverride); } } catch (IllegalArgumentException e) { throw (JMSException) new JMSException("Bad endpoint configuration: " + e.getMessage()).initCause(e); } }