5.x
Amazon SQS - Upgrade the Connector to Version 5.7 - Mule 4
Upgrade Anypoint Connector for Amazon SQS to take advantage of the ability to run an app on a single node or on all nodes of a cluster.
What’s Changed
5.7
-
The Messages object now contains a new
deduplicationId
fieldIf multiple messages are sent with the same deduplication ID, Amazon SQS accepts the messages successfully, but delivers only the first message during the 5-minute deduplication interval.
5.6
-
Cluster node support was added back to the
Receive Messages
input source and works the same as it did in version 5.4.3The input source listens for messages on all cluster nodes by default, but you can change this behavior by using the
Primary node only
field on theAdvanced
sub-tab on theReceive Messages
tab. For more information, see Receiving Messages in Cluster Mode.
Requirements
Ensure your system meets the following requirements before you perform the upgrade:
Application/Service | Version |
---|---|
Mule |
4.1.1 and later |
Java |
1.8.0_x |
Anypoint Studio |
7.0 and later |
See the Amazon SQS Connector Release Notes for updated compatibility information for patch updates.
Upgrade Prerequisites
Before you upgrade, create a backup of your files, data, and configurations in case you need to restore them.
Upgrade Steps
Follow these steps to perform the upgrade:
-
In Anypoint Studio, create a Mule project.
-
In the Mule Palette view, click Search in Exchange.
-
Enter
sqs
in the search field. -
In the Available modules section, select Amazon SQS Connector and click Add.
-
Click Finish.
-
Verify that the
mule-amazon-sqs-connector
dependency version is5.7.x
in thepom.xml
file in the Mule project. Replacex
with the version that corresponds to the connector you are using. -
In version 5.5.0, the
Receive Messages
input source received messages on the primary node only. To obtain the same behavior in this version, access theAdvanced
tab in theReceive Messages
configuration and select thePrimary node only
field.If you’re upgrading from version 5.4.x or earlier to version 5.7, this step is not needed.
Studio upgrades the connector automatically.
Post Upgrade Steps
After you install the latest version of the connector, verify the upgrade:
-
In Studio, verify that there are no errors in the Problems or Console views.
-
Verify that there are no problems in the project
pom.xml
file. -
Test the connection and verify that the operations work.
Troubleshooting
If there are problems with caching the parameters and metadata, try restarting Studio.