I'm trying to develop a Spring Boot(1.5) app that needs to listen to SQS queues from two different AWS accounts.
Is it possible to create a listener using JmsListener annotation? I've checked that the rights are correct, I'm able to get the queue url with getQueueUrl() and setting the right account id with setQueueOwnerAWSAccountId().

Below is the code I've used for the listener that's under main account. Trying to use that for the queue on the other account, gives error

```
HTTPStatusCode: 400 AmazonErrorCode: AWS.SimpleQueueService.NonExistentQueue 
com.amazonaws.services.sqs.model.QueueDoesNotExistException: The specified queue does not exist for this wsdl version.

```

Queue reader class

```
@Service
public class QueueReader {

    @JmsListener(destination = "queue-name")
    public void messageReceived(@Payload String message) {
        // message received
    }
}

```

Queue config class

```
@Configuration
@EnableJms
public class QueueReaderConfig {
    SQSConnectionFactory connectionFactory = SQSConnectionFactory.builder().withRegion(Region.getRegion(Regions.EU_WEST_1))
                    .withAWSCredentialsProvider(new DefaultAWSCredentialsProviderChain())
                    .build();

    @Bean
    public DefaultJmsListenerContainerFactory jmsListenerContainerFactory() {
        DefaultJmsListenerContainerFactory factory =
                new DefaultJmsListenerContainerFactory();
        factory.setConnectionFactory(this.connectionFactory);
        factory.setDestinationResolver(new DynamicDestinationResolver());
        factory.setConcurrency("3-10");
        factory.setSessionAcknowledgeMode(Session.CLIENT_ACKNOWLEDGE);
        return factory;
    }

    @Bean
    public JmsTemplate defaultJmsTemplate() {
        return new JmsTemplate(this.connectionFactory);
    }
}

```