[#211][#207] initial demo setup with declarative approach and springboot approach + command dispatching/handling - #4755
Merged
laura-devriendt-lemon merged 7 commits intoJul 23, 2026
Conversation
laura-devriendt-lemon
force-pushed
the
feature/axoniq/176/211_spring_boot_auto_configuration_demo
branch
from
July 17, 2026 09:52
e33f2e9 to
3460fb2
Compare
laura-devriendt-lemon
marked this pull request as ready for review
July 17, 2026 10:00
laura-devriendt-lemon
requested review from
MateuszNaKodach,
hatzlj and
jangalinski
and removed request for
a team
July 17, 2026 10:00
hatzlj
force-pushed
the
feature/axoniq/176/211_spring_boot_auto_configuration_demo
branch
from
July 21, 2026 11:04
3460fb2 to
6af3ed2
Compare
laura-devriendt-lemon
force-pushed
the
feature/axoniq/176/211_spring_boot_auto_configuration_demo
branch
from
July 22, 2026 14:52
6af3ed2 to
dbe0497
Compare
hatzlj
approved these changes
Jul 23, 2026
hatzlj
left a comment
Contributor
There was a problem hiding this comment.
lgtm, just one cosmetic correction regarding axon server
laura-devriendt-lemon
force-pushed
the
feature/axoniq/176/211_spring_boot_auto_configuration_demo
branch
from
July 23, 2026 07:35
8c03762 to
f539007
Compare
hatzlj
force-pushed
the
feature/axoniq/176/211_spring_boot_auto_configuration_demo
branch
from
July 23, 2026 08:53
f539007 to
3140572
Compare
laura-devriendt-lemon
deleted the
feature/axoniq/176/211_spring_boot_auto_configuration_demo
branch
July 23, 2026 09:39
smcvb
reviewed
Jul 23, 2026
smcvb
left a comment
Contributor
There was a problem hiding this comment.
In all I love the structure an thoroughness. Definitely hope this helps people to comprehend how multi-tenancy works for Axon Framework. But, with 25 comments, I would've requested changes on this already merged PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Multi-tenancy example demos
Adds a set of runnable university examples under
examples/university-multi-tenancy-examplesthat demonstrate the Axoniq Framework 5 multi-tenancy support, so the feature has living
documentation and is exercised end to end.
Demonstrates #205 (tenant infrastructure), #207 and #211 (Spring Boot auto-configuration) at the moment.
Part of #176.
What the demo shows
CourseStatsStoreand oneAuditLoginstance pertenant, with the framework injecting the right tenant's instance into both a command
handler and a query handler.
_admincontext out of the discovered tenants.axon.multitenancy.enabled=false.Modules
The demo is split so a reader can pick the module matching the configuration style they
want to learn.
university-multi-tenancy-coreuniversity-multi-tenancy-declarativedemo.axon-server.enabledtoggle.university-multi-tenancy-springbootTests
MultiTenancyDemoTest(declarative): the tenant lifecycle end to end plus theprovider-ambiguity guardrail.
MultiTenancyDisabledTest(Spring Boot): with multi-tenancy disabled, dispatching a tenant-scoped command fails at runtime.MultiTenancyDemoIT(Spring Boot): boots Axon Server through Testcontainers and assertsthe full lifecycle, including
_adminfiltering.CI
The integration test needs a multi-context (Enterprise Edition) Axon Server, which requires
a license. A "Write Axon Server test license" step writes the
AXON_SERVER_LICENSEsecretto the license file the test reads. The integration test runs in this repository's own pull
requests (where the secret is available) and locally (using a local license file), and skips
itself only where a license cannot be provided, such as fork pull requests. The license file
is git-ignored and never committed.