Skip to content

Fix tenant-aware connection factory lookup in HeaderBasedMultiTenantConnectionFactory - #686

Open
ralfkuehnel wants to merge 2 commits into
ecotoneframework:mainfrom
ralfkuehnel:fix/tenant-aware-connection-factory
Open

Fix tenant-aware connection factory lookup in HeaderBasedMultiTenantConnectionFactory#686
ralfkuehnel wants to merge 2 commits into
ecotoneframework:mainfrom
ralfkuehnel:fix/tenant-aware-connection-factory

Conversation

@ralfkuehnel

Copy link
Copy Markdown

Why is this change proposed?

Pass the resolved tenant to getConnectionFactory() so the connection factory is looked up using the correct tenant context instead of relying solely on the current execution context.

Description of Changes

Passing the tenant through ensures consistent tenant resolution and correct connection factory selection.

Pull Request Contribution Terms

  • I have read and agree to the contribution terms outlined in CONTRIBUTING.

@dgafka

dgafka commented Jul 21, 2026

Copy link
Copy Markdown
Member

Hey @ralfkuehnel,

Can you add test case using Ecotone Lite, which would fail without this fix? (to avoid regression bugs in future)

@dgafka

dgafka commented Jul 28, 2026

Copy link
Copy Markdown
Member

Do you need any help from my side @ralfkuehnel ?

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