Questions tagged [axon]

Axon consists of two main topics: (1) Axon Framework and (2) Axon Server. Axon Framework is a Java based open source framework providing building blocks to support developers with Domain-Driven Design, CQRS and Event Sourcing in their application. Axon Server provides a dedicated message routing solution and Event Store, further supporting a micro services oriented style of software development.

Through Axon, we can refer to two major topics: Axon Framework and Axon Server.

Axon Framework is a Java based open source framework providing building blocks to support developers with Domain-Driven Design, CQRS and Event Sourcing in their application.

Axon Server provides a dedicated routing solution and Event Store, further supporting a micro services oriented style of software development.

578 questions
5
votes
1 answer

Unknown Entity when calling EntityManager.persist()

I have this class in QuoteProjection.java: package com.mycompany.myapp.query; import com.mycompany.myapp.command.domain.ProjectedQuote; import javax.persistence.EntityManager; public class QuoteProjection { private final EntityManager…
Jonathan M
  • 17,145
  • 9
  • 58
  • 91
5
votes
1 answer

Axon - Duplicate segment claim/unclaimed segments for multiple nodes and multiple databases

We are running a setup locally where we start two instances of an Axon application. The following properties are set in application.yml: axon: eventhandling: processors: SomeProcessorName: initialSegmentCount: 2 …
5
votes
2 answers

Axon 4 XStream configuration

When running my Spring Boot app which includes Axon 4 I see the following in my output console: Security framework of XStream not initialized, XStream is probably vulnerable. How do I go about securing the XStream included in Axon 4? For…
Kenneth Clark
  • 356
  • 1
  • 14
5
votes
3 answers

How to implement Commands and Events for complex form using Event Sourcing?

I would like to implement CQRS and ES using Axon framework I've got a pretty complex HTML form which represents recruitment process with six steps. ES would be helpful to generate historical statistics for selected dates and track changes in…
Wojciech Marusarz
  • 342
  • 1
  • 2
  • 10
5
votes
2 answers

java.lang.NoClassDefFoundError: org/springframework/messaging/handler/annotation/support/MessageHandlerMethodFactory

I am going to make cqrs application using axon.I try to config axon RabbitMq to my application. If add spring-boot-starter-amqp and axon-amqp it make this error. how can I solve this. [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time…
wthamira
  • 2,032
  • 2
  • 21
  • 40
5
votes
4 answers

NoHandlerForCommandException with axon-spring-boot-starter

I am creating a simple app using Axon + Spring Boot, just to make sure I understand the basic components in Axon framework before I use it in a real project. There is a method annotated with @CommandHandler within the class TaskAggregate that is…
Rodney
  • 53
  • 1
  • 5
4
votes
3 answers

Getting ForbiddenClassException in Axon/SpringBoot

I am trying to implement axon framework with spring boot. Here is the version of jars. Spring Boot 2.6.1 Java 17 Axon 4.5.6 My Project Structure is: user-command user-query user-core (common jar contains events) I am getting the below exception…
4
votes
1 answer

Axon or Kafka to support CQRS/ES

Consider the simple use case in which I want to store product ratings as events in an event store. I could use two different approaches: Using Axon: A Rating aggregate is responsible for handling the CreateRatingCommand and sending the…
KDW
  • 485
  • 3
  • 17
4
votes
3 answers

Primitive Axon App run as Fat JAR Doesn't Autoconfigure Axon Beans

PROBLEM: RESEARCH: At https://gitlab.com/ZonZonZon/simple-axon.git I've made up a simple Axon-app to show that JAR-artifact built with Gradle-plugin com.github.johnrengelman.shadow doesn't autoconfigure Axon beans when (when run as JAR). Though it…
Zon
  • 18,610
  • 7
  • 91
  • 99
4
votes
1 answer

Using Axon for CQRS and event sourcing. Aggregate not found in event store

I am new to Axon and have written a sample code wherein we have an inventory service which is used for adding new inventory, updating inventory and we want to send events to Product Service for any update. Product service should act as a read…
Payal Bansal
  • 725
  • 5
  • 17
4
votes
2 answers

Considering Axon in greenfield project

I'll be starting on a greenfield project in a few months. The project will contain lot's of business logic, spread over several subdomains. Yes, we'll be using principles of Domain Driven Design. Tech will consist of Spring, Spring Boot & Hibernate…
user2054927
  • 969
  • 1
  • 12
  • 30
4
votes
2 answers

Axon Framework: Saga project with compensation events between two or three microservices

I have a question about Axon Saga. I have a project where I have three microservices, each microservice has his own database, but the two "Slave" microservice has to share his data to the "Master" microservice, for that I want to use the Axon Saga.…
polosoft
  • 200
  • 1
  • 14
4
votes
1 answer

Axon Framework: send command on aggregate load

We're building a microservices system with Axon Framework 4.1. In our domain, we have a label concept where we can attach labels to other entities. While labels are normally created and managed by the user, some of these labels are "special" and…
jqno
  • 15,133
  • 7
  • 57
  • 84
4
votes
1 answer

Design Commands And Events while Handling External partner with Axon 4

This is a question related to designing command handling with Axon 4. Let say I've a domain that model the concept of a Payment. The actual payment will be done by an external Partner. I want to track it in my system via the following events: a…
Sylvain
  • 639
  • 5
  • 26
4
votes
1 answer

Are hashCode and equals in Axon needed for aggrregates and messages?

Is it necessary to add (override) hashCode and equals methods to Axon aggregates and messages? Analysis in SonarQube shows that they are not used while doing standard Axon operations on these entities (in end to end tests). Moreover, during…
Vadim Lopatkin
  • 134
  • 1
  • 7
1
2
3
38 39