I’m currently building a new application and for reasons am required to build it with the Mendix Low Code platform. As we have a comprehensive audit trail as a strict requirement for our application, I want to explore, If I can utilize Axon Framework and Axon Server to build the backbone of the application and use the Mendix capabilities to build the UIs including Command Interface and Query Projections.
I have a certain Idea how that can work, but since Mendix provides a Non-Spring environment, I need to programmatically configure the Framework using the org.axonframework.config.DefaultConfigurer including the connection to Axon Server with the AxonServer Connector.
I am aware of the Configuration Examples documented nearby each topic in the reference guide. What I was looking for is an overview on which parts I need to configure to get an application running like with spring boot autoconfiguration.
I wonder if anyone here knows of a comprehensive example for a programmatic framework configuration including the axon server connector.
My approach without an example for now would be to investigate the Auto-Configuration of the axon-spring-boot-starter as a starting point to see what needs to be configured and check the relevant sections in the Reference guide on the configuration examples if necessary.
I also want to share what older posts I’ve already found in the forum regarding configuring the framework without Spring:
I think It could also add value to the reference guide to have a dedicated section that shows how to achieve a configuration similar to the spring-boot auto configuration programmatically in one place.
I would be willing to create an Issue in the reference guide repository and contribute to such a section If anyone thinks that makes sense.
I am afraid that at this stage, we do not have a single source that showcases an example of how to make a non-Spring-based Axon Framework application.
As you have already figured out, there are several repositories (unrelated to AxonIQ) that follow such a style, which can help you out. Second, and as suggested by you already, the auto-configuration is a good place to sneak peek at what is needed to make things work.
This is an easy answer to give, Jakob: Of course we would like a contribution of this! It has been an idea on the back burner for so long, but we simply haven’t come around to doing this.
This is in part because the oldReference Guide doesn’t have a spot for tutorials like this.
However, the newLibrary does, called “guides.”
For Axon Framework guides, that would be this page.
Now, if you want to contribute (issue and/or PR, whatever works for you), it is good to know that these documentation suggestions should no longer be made in the Reference Guide repository but in the Axon Framework repository directly.
More specifically, you can go to the docs folder here to spot how we’ve done other guides, like the Identifier Generation guide.