我正在尝试实现AWS的SimpleQueueService。我在US-east-2地区创建了名为“tradein-tire-promotionsOrders-Alpha-USAmazon”的队列。我在xml中也提到过要考虑像us-east-2这样的区域:
<bean id="sqsEndPoint_USAmazon" class="java.lang.String">
<constructor-arg value="https://sqs.us-east-2.amazonaws.com" />
</bean>
我创建的bean是:
<bean name="promotionsOrdersQueuePoller"
class="com.amazon.tradein.datarelocationengine.sqs.PromotionsOrdersQueuePoller"
init-method="init">
<constructor-arg ref="resourceProvider" />
<constructor-arg ref="promotionsOrdersQueueMessageHandler" />
<constructor-arg ref="promotionsOrdersQueueMessageFailureHandler" />
</bean>
<bean name="promotionsOrdersQueueMessageHandler"
class="com.amazon.tradein.datarelocationengine.sqs.PromotionsOrdersQueueMessageHandler" />
<bean name="promotionsOrdersQueueMessageFailureHandler"
class="com.amazon.tradein.datarelocationengine.sqs.PromotionsOrdersQueueMessageFailureHandler" />
现在我仍然收到错误:
Error creating bean with name 'promotionsOrdersQueuePoller' defined in URL [file:/local/home/mshikher/TradeInDataRelocationService/src/TradeInDataRelocationEngine/configuration/spring-configuration/application/sqs.xml]: Invocation of init method failed; nested exception is com.amazon.tradein.datarelocationengine.exception.TerminalException: SQS message consumer start failed
Caused by: com.amazonaws.services.sqs.model.QueueDoesNotExistException: The specified queue does not exist for this wsdl version. (Service: AmazonSQS; Status Code: 400; Error Code: AWS.SimpleQueueService.NonExistentQueue;
我已经阅读了很多解决方案,但只有一个解决方案,我们需要在us-east-2区域创建队列。我已经创建了那个,请给我一些其他解决方案。