Skip to content

Use dedicated JMS listener connection factory in 6.x - #50105

Open
Moary Chen (moarychan) wants to merge 1 commit into
Azure:feature/spring-cloud-azure-6.xfrom
moarychan:moary/port-49833-to-6x
Open

Use dedicated JMS listener connection factory in 6.x#50105
Moary Chen (moarychan) wants to merge 1 commit into
Azure:feature/spring-cloud-azure-6.xfrom
moarychan:moary/port-49833-to-6x

Conversation

@moarychan

Copy link
Copy Markdown
Member

Description

Port #49833

This ports the Service Bus JMS listener connection factory fix to the Spring Boot 3 / Spring Cloud Azure 6.x branch. When spring.jms.servicebus.pool.enabled=true and spring.jms.cache.enabled=false, sender operations continue to use JmsPoolConnectionFactory, while queue and topic listener containers use a shared dedicated ServiceBusJmsConnectionFactory. This enables topic subscriptions on the Service Bus Standard tier.

Related to #49308.

Testing

  • Negative verification with the old decision-table entry: Tests run: 2, Failures: 2, Errors: 0; both variants returned JmsPoolConnectionFactory.
  • Focused positive verification: Tests run: 2, Failures: 0, Errors: 0; reactor build succeeded.
  • Full ServiceBusJmsAutoConfigurationTests: Tests run: 53, Failures: 0, Errors: 0, Skipped: 0; build succeeded.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up your commits, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

* Use dedicated JMS listener connection factory

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Address JMS connection factory review comments

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>

* Update Spring changelog for JMS listener fix

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>

---------

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
(cherry picked from commit 214ca38)
@github-actions github-actions Bot added the azure-spring All azure-spring related issues label Aug 12, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
31 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

azure-spring All azure-spring related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants