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 sample for DLQ consumption of Service Bus Queue using Spring JMS #771

Conversation

moarychan
Copy link
Contributor

Purpose

Sample for DLQ consumption of Service Bus Queue using Spring JMS

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Follow the sample readme.

  • Test the code

What to Check

N/A

Other Information

N/A

@moarychan moarychan requested a review from a team as a code owner January 24, 2025 07:23
private static final String DEAD_LETTER_QUEUE_NAME = QUEUE_NAME + DEAD_LETTER_QUEUE_NAME_SUFFIX;

@JmsListener(destination = QUEUE_NAME, containerFactory = "jmsListenerContainerFactory")
public void receiveMessage(JmsObjectMessage message) throws JMSException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something we could improve here is using a message converter, and then serialize and deserialize the message.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but we don't necessarily need to do it in this PR

moarychan and others added 2 commits January 24, 2025 16:04
…s-jms-dlq-queue/src/main/java/com/azure/spring/sample/jms/queue/ServiceBusJMSDLQQueueApplication.java

Co-authored-by: Xiaolu Dai <[email protected]>
@moarychan moarychan merged commit 98b7692 into Azure-Samples:main Jan 24, 2025
7 checks passed
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