Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add properties to the message #25

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

fabianmartins
Copy link

@fabianmartins fabianmartins commented May 9, 2024

With this change, the code can be invoked like this:

java -jar amazon-mq-client.jar
-url ""
-mode sender
-type queue
-destination
-properties "chosendestination:Q2,criticality:medium,area:capmark"
-user
-password
-interval

In the example above we are adding the key-value pairs {"chosendestination":"Q2"}, {"criticality":"medium"}, {"area":"capmark"} to the message properties, so they can be used for filtering.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…n be used for filtering through message.setStringProperty

With this change, the code can be invoked like this:

java -jar amazon-mq-client.jar \
  -url "<failover-url>" \
  -mode sender \
  -type queue \
  -destination <destination-queue> \
  -properties "chosendestination:Q2,criticality:medium,area:capmark" \
  -user <user> \
  -password <password> \
  -interval <interval>

In the example above we are adding the key-value pairs {"chosendestination":"Q2"}, {"criticality":"medium"}, {"area":"capmark"} to the message header.
@fabianmartins fabianmartins changed the title Add properties to the message header Add properties to the message May 9, 2024
@parasjain01 parasjain01 changed the base branch from master to release-2024 January 10, 2025 19:31
@parasjain01
Copy link
Collaborator

Thanks for the PR. We will test it with the new release

@parasjain01 parasjain01 merged commit 49b367b into aws-samples:release-2024 Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants